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

Interface AttributeOptions ​

ts
interface AttributeOptions {
  sourceKey?: string;
  type?: string;
}

Defined in: fields/attribute.ts:12

Options accepted by the attribute decorator.

Properties ​

sourceKey? ​

ts
sourceKey?: string;

Defined in: fields/attribute.ts:20

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


type? ​

ts
type?: string;

Defined in: fields/attribute.ts:27

The name of a legacy transform to compile onto the field's type.

Released under the MIT License.