You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@name('other') // for @model / @models .named()
class Other extends Model {
constructor(owner, props) {
super(owner);
}
}
export default class Thing extends Model {
@model()
.named(({ type }) => type === 'other' ? Other : Foo)
.mapping(thing => ({ })
other;
}
create model using provided factory (@model and @models)
support model recreation based on model name which is set using @name decorator
The text was updated successfully, but these errors were encountered:
@model
and@models
)@name
decoratorThe text was updated successfully, but these errors were encountered: