Skip to content
module@warp-drive/schema-dsl

Defined in: fields/array.ts:11

Options accepted by the array decorator.

Properties

sourceKey?

ts
optional sourceKey?: string;

Defined in: fields/array.ts:19

The name of the field as returned by the API, if it differs from the decorated property's name. Compiles onto the ArrayField's sourceKey.


type?

ts
optional type?: string;

Defined in: fields/array.ts:28

The name of a Transformation to pass each item in the array through before displaying or serializing it. Compiles onto the ArrayField's type.

Released under the MIT License.