New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
store.push(type, data) deprecated - WHY? #3402
Comments
We're not killing
If you're using the built-in store.push(store.normalize('user', { userName: 'myUserName', firstName: 'Dan', lastName: 'LastMe' .....})); If you manually extend one of the built-in serializers you have to opt into the new Serializer API to have them normalize to JSON-API. |
I'm always normalizing my data: store.push('user', store.normalize('user', { DATA }); You are saying that just: store.push(store.normalize('user', { DATA }); Will work? If so some major changes have been made to the normalize function. |
The built-in serializers have been updated so their |
How do I use the new Serializer API and what happens if I dont use it? BTW, |
If you don't extend the built-in serializers but rely on the default ones they will opt in automatically for you. If you extend any of the built-in serializers you can opt into the new Serializer API by setting If you use the new You should upgrade to the new Serializer API as it will be mandatory in Ember Data 2.0. You don't have to update in Ember Data 1.13 but it's highly recommended. Feel free to ping me on the Ember Community Slack, I'd be happy to help you get this sorted. |
You are huge, thanks! |
This is the best way to insert data into the store and it has been killed in favor of JSON API objects. But if my API is a JSON API I would use the Adapter as is, we have an API that requires custom ajax call and then we inject the data into the store through the push method. Killing it will basically kill our entire application!
I would like to be able to push data that is a JSON that looks just like the model.
For example:
Will work with:
The text was updated successfully, but these errors were encountered: