module@warp-drive/schema-dsl
Interface ArrayFieldOptions
ts
interface ArrayFieldOptions {
sourceKey?: string;
type?: string;
}Defined in: fields/array.ts:13
Options accepted by the array decorator.
Properties
sourceKey?
ts
sourceKey?: string;Defined in: fields/array.ts:21
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
type?: string;Defined in: fields/array.ts:30
The name of a Transformation to pass each item in the array through before displaying or serializing it. Compiles onto the ArrayField's type.