Skip to content

Migrating from 0.1.x to 0.2.x

Jan Paul Erkelens edited this page Nov 10, 2013 · 2 revisions

There is a breaking change in 0.2.0

parentOf and childOf now return relationship objects.

Where before one called:

   Schema.parentOf('ModelName', 'itsPath', { path: 'myPath', delete: true })

Now one should call:

   Schema.parentOf('ModelName', 'myPath').enforceWith('itsPath', {delete: true})
Clone this wiki locally