adopted-ember-addons / ember-data-model-fragments

Ember Data addon to support nested JSON documents
MIT License
370 stars 114 forks source link

add parent record to default value function #453

Closed VincentMolinie closed 11 months ago

knownasilya commented 1 year ago

Would probably need some docs too. What's the use-case for this?

knownasilya commented 1 year ago

ping

knownasilya commented 1 year ago

@VincentMolinie I can merge once feedback is addressed

dwickern commented 1 year ago

This was implemented by #417. The fragment attributes' defaultValue has the same signature as ember-data's attr. defaultValue: (record, options, key) => ...