prorm API Reference
    Preparing search index...

    Function jsonPathQuery

    • Helper to create JSON path query condition Evaluates JSON path and returns result (PostgreSQL @@ operator)

      Parameters

      • column: string
      • path: string

      Returns Record<string, any>

      // Query JSON path
      User.findAll({ where: jsonPathQuery('data', '$.key') })
      // SQL: WHERE data @@ '$.key'