module@warp-drive/schema-dsl
Defined in: fields/object.ts:11
Options accepted by the object decorator.
Properties
sourceKey?
ts
optional sourceKey?: string;Defined in: fields/object.ts:19
The name of the field as returned by the API, if it differs from the decorated property's name. Compiles onto the ObjectField's sourceKey.
type?
ts
optional type?: string;Defined in: fields/object.ts:28
The name of a Transformation to pass the entire object through before displaying or serializing it. Compiles onto the ObjectField's type.