@legacy
Documentation / @warp-drive/legacy / model/migration-support / registerDerivations
Documentation / @warp-drive/legacy / model/migration-support / registerDerivations
Function: registerDerivations()
ts
function registerDerivations(schema): void;
Defined in: warp-drive-packages/legacy/src/model/migration-support.ts:406
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