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
I currently have this code in my serializer : export default { jsonapiObject: false, id: 'id', links: { self: function (data) { return '/v1/ingredients/' + data.id }, }, }
that returns lots of data in attrtibutes like in code bellow. Is there any way to return only the basic attributes? { "data": [ { "type": "ingredients", "id": "6082d2ff72de5a0cb0e08a42", "attributes": { "$__": {} "isNew": false, "$locals": {}, "$op": null, "_doc": { "_id": "6082d2ff72de5a0cb0e08a42", "name": "XXX", "category": "XXX" }, "$init": true }, "links": { "self": "/v1/ingredients/6082d2ff72de5a0cb0e08a42" } } ] }
The text was updated successfully, but these errors were encountered:
Hello,
I currently have this code in my serializer :
export default { jsonapiObject: false, id: 'id', links: { self: function (data) { return '/v1/ingredients/' + data.id }, }, }
that returns lots of data in attrtibutes like in code bellow. Is there any way to return only the basic attributes?
{ "data": [ { "type": "ingredients", "id": "6082d2ff72de5a0cb0e08a42", "attributes": { "$__": {} "isNew": false, "$locals": {}, "$op": null, "_doc": { "_id": "6082d2ff72de5a0cb0e08a42", "name": "XXX", "category": "XXX" }, "$init": true }, "links": { "self": "/v1/ingredients/6082d2ff72de5a0cb0e08a42" } } ] }
The text was updated successfully, but these errors were encountered: