Documentation / @ember-data/store / types / ModelSchema
Interface: ModelSchema<T>
Defined in: warp-drive-packages/core/declarations/store/deprecated/-private.d.ts:49
Minimum subset of static schema methods and properties on the "model" class.
Only used when using the legacy schema-service implementation for @warp-drive/legacy/model or when wrapping schema for legacy Adapters/Serializers.
Type Parameters
T
T = unknown
Methods
eachAttribute()
eachAttribute<K>(callback, binding?): void;Defined in: warp-drive-packages/core/declarations/store/deprecated/-private.d.ts:54
Type Parameters
K
K extends string
Parameters
callback
(this, key, attribute) => void
binding?
T
Returns
void
eachRelationship()
eachRelationship<K>(callback, binding?): void;Defined in: warp-drive-packages/core/declarations/store/deprecated/-private.d.ts:55
Type Parameters
K
K extends string
Parameters
callback
(this, key, relationship) => void
binding?
T
Returns
void
eachTransformedAttribute()
eachTransformedAttribute<K>(callback, binding?): void;Defined in: warp-drive-packages/core/declarations/store/deprecated/-private.d.ts:56
Type Parameters
K
K extends string
Parameters
callback
(this, key, type) => void
binding?
T
Returns
void
Properties
attributes
attributes: Map<KeyOrString<T>, LegacyAttributeField>;Defined in: warp-drive-packages/core/declarations/store/deprecated/-private.d.ts:52
fields
fields: Map<KeyOrString<T>, "attribute" | "belongsTo" | "hasMany">;Defined in: warp-drive-packages/core/declarations/store/deprecated/-private.d.ts:51
modelName
modelName: T extends TypedRecordInstance ? TypeFromInstance<T<T>> : string;Defined in: warp-drive-packages/core/declarations/store/deprecated/-private.d.ts:50
relationshipsByName
relationshipsByName: Map<KeyOrString<T>, LegacyRelationshipField>;Defined in: warp-drive-packages/core/declarations/store/deprecated/-private.d.ts:53