@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:425
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
The schema service to register the derivations with.
Returns
void