Skip to content

Documentation / @ember-data/model / migration-support / registerDerivations

Function: registerDerivations()

ts
function registerDerivations(schema): void;

Defined in: warp-drive-packages/legacy/declarations/model/migration-support.d.ts:184

A function which registers the necessary derivations to support the LegacyMode features of @warp-drive/legacy/model while migrating to WarpDrive.

This must be called in order to use the fields added by withDefaults or withRestoredDeprecatedModelRequestBehaviors.

Parameters

schema

SchemaService

The schema service to register the derivations with.

Returns

void

Released under the MIT License.