Entity
    Preparing search index...

    Class JSONArrayField<TRequireExplicitCache>

    EntityFieldDefinition for a Postres column with a JS JSON array type.

    Type Parameters

    • TRequireExplicitCache extends boolean

    Hierarchy

    Index

    Constructors

    • Type Parameters

      • TRequireExplicitCache extends boolean

      Parameters

      • options: TRequireExplicitCache extends true
            ? EntityFieldDefinitionOptionsExplicitCache
            : EntityFieldDefinitionOptions

        options for this field definition

      Returns JSONArrayField<TRequireExplicitCache>

    Properties

    _cacheRawSentinel: TRequireExplicitCache
    association:
        | EntityAssociationDefinition<any, any, any, any, any, any>
        | undefined
    cache: boolean
    columnName: string

    Methods

    • Validates input value for a field of this type. Null and undefined are considered valid by default. This is used for things like:

      • EntityLoader.loadByFieldValue - to ensure the value being loaded by is a valid value
      • EntityMutator.setField - to ensure the value being set is a valid value

      Parameters

      • value: any[] | null | undefined

      Returns boolean