Class ArrayType<TElementField, TRequired>

Array type definition that can optionally enforce an element type.

Type Parameters

  • TElementField extends SchemaFieldLike = Type<unknown>
  • TRequired extends boolean = false

Hierarchy (View Summary)

Constructors

Properties

_required: boolean
defaultValue?:
    | TypeOutput<InferFieldValue<TElementField>[], TRequired>
    | () => TypeOutput<InferFieldValue<TElementField>[], TRequired>
elementType: TElementField
hasDefault: boolean
isSensitive: boolean
isVirtual: boolean
options: Record<string, unknown>

Methods

  • Flag the field as sensitive so joins/exposures can omit it by default.

    Parameters

    • isSensitive: boolean = true

    Returns this