prorm API Reference
    Preparing search index...

    Function jsonConcat

    • Helper to create JSONB concatenation condition Concatenates two JSONB values (PostgreSQL || operator)

      Parameters

      • column: string
      • jsonValue: object | any[]

      Returns Record<string, any>

      // Concatenate JSONB values
      User.findAll({ where: jsonConcat('data', { key: 'value' }) })
      // SQL: WHERE data || '{"key": "value"}'