reyesoft / ngx-jsonapi

JSON API client library for Angular 5+ 👌 :: Production Ready 🚀
https://ngx-jsonapi.reyesoft.com/
MIT License
101 stars 52 forks source link

Error response on .save() does not produce processable object #181

Closed El-scradge closed 4 years ago

El-scradge commented 5 years ago

Using .save().subscribe( response => {}, error => { error } produces -> Error: [object Object] instead of the response object from the server like it does from .get() and .all().

pablorsk commented 4 years ago

You can use the original object, because is a pontier to same memory location. Library, when you save object, dont create a new one, just replace data on origual data.

For example:

author.save().subscribe(response => console.log('all data is from server', author); );