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:168
A function which registers the necessary derivations to support the LegacyMode features of @ember-data/model while migrating to WarpDrive.
This must be called in order to use the fields added by:
ts
import { withDefaults } from '@ember-data/model/migration-support';
Parameters
schema
The schema service to register the derivations with.
Returns
void