prorm API Reference
    Preparing search index...

    Function jsonPathExists

    • Helper to create JSON path exists condition Checks if a JSON path exists and returns boolean (PostgreSQL @? operator)

      Parameters

      • column: string
      • path: string

      Returns Record<string, any>

      // Check if path exists
      User.findAll({ where: jsonPathExists('data', '$.key') })
      // SQL: WHERE data @? '$.key'