ember-data-model-fragments
ember-data-model-fragments copied to clipboard
Ember Data addon to support nested JSON documents
After upgrading from Ember CLI 2.18 to 3.4.4, I am getting this error when running unit, acceptance, and integration tests: TypeError: Cannot read property 'serializerFor' of null at Class.deserializeSingle (http://localhost:56686/assets/vendor.js:208413:30)...
Hi, thanks for making this addon it takes care of a much needed use case in ember data. @goldstarlearning we are using this addon to handle rich json documents in...
Given ```javascript // app/models/person.js export default Model.extend({ name: attr('string'), addresses : fragmentArray('address'), }); // app/models/address.js export default Fragment.extend({ street : attr('string'), country : attr('string') }); ``` If `person` looks like...
Hello, I have an error when copying models with fragments `Error: Assertion Failed: You need to pass a model name to the store's serializerFor method` I should add that we...
I am using ember data: 2.1.0 ember: 2.1.0 ember model fragments: 2.1.2 I have a model with a fragment that has a fragment. When using a computed alias or an...
I am trying to write an integration test for a component that manipulates a model called `spot`. Here is the spot model: ``` // models/spot.js // imports... // some validations...
After upgrading from 3.2.0-beta.1 to 3.2.0-beta.2 I've got some issues related to serializing fragments: ``` Error: Assertion Failed: You need to pass a model name to the store's serializerFor method...
It would be great, if we could write this: `property: fragment('pathToProp', { defaultValue: undefined })` Sometimes it needs when a server sends incomplete data. And we should distinguish if an...
I know you can use the store API to create fragments e.g. ``` person.set('name', store.createFragment('name', { first : 'Hugor', last : 'Hill' })); ``` but is there an API to...
Hello, I'm very sure I'm doing this incorrectly. I have a route for creating a model setup as shown: ``` export default Route.extend(AuthenticatedRouteMixin, { model() { return RSVP.hash({ systemDatasource: this.store.createRecord('system-datasource',...