• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • @sequelize/core
  • index
  • json

Function json

  • json(
        conditionsOrPath: string | { [key: string]: any },
        value?: null | string | number | boolean,
    ):
        | AssociationPath
        | Attribute
        | DialectAwareFn
        | Cast
        | JsonPath
        | Where<typeof eq>

    Creates an object representing nested where conditions for postgres/sqlite/mysql json data-type.

    Parameters

    • conditionsOrPath: string | { [key: string]: any }

      A hash containing strings/numbers or other nested hash, a string using dot notation or a string using postgres/sqlite/mysql json syntax.

    • Optionalvalue: null | string | number | boolean

      An optional value to compare against. Produces a string of the form " = ''".

    Returns
        | AssociationPath
        | Attribute
        | DialectAwareFn
        | Cast
        | JsonPath
        | Where<typeof eq>

    Deprecated

    use sql.where, sql.attribute, and/or sql.jsonPath instead.

    • Defined in packages/core/src/expression-builders/json.ts:19

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc