-
Notifications
You must be signed in to change notification settings - Fork 5
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
Remove extra attributes #16
Comments
Thanks, i was of the understanding that js-data ignored properties starting with '$' but this may just be for change tracking. I'll strip this property off of any outgoing requests in the serializer. |
Interesting, let me check the spec, maybe I did the API wrong. Hmmm, in the upcoming version (v1.1) I see that the spec will ignore "@-members": Problem with that is that so many of the JS libraries use $ for internal stuff. Maybe that will change before the spec gets released. -_Rob On Tue, Jul 5, 2016 at 9:27 PM Blair notifications@github.com wrote:
|
No i thought js-data would ignore all attributes starting with $. I had assumed it would not send them.. |
I've noticed that the data.attributes sent to the server contains an extra key called "$JSONAPIMETA".
There is a similar issue with
$$hashKey
which is added by ng-repeat from Angular. js-data resolved a bug with this key in js-data/js-data-angular#208I added checks for these two values here: https://github.com/BlairAllegroTech/js-data-jsonapi/blob/js-data-jsonapi/src/JsonApiSerializer.ts#L861
It might be better to keep track of which attributes came from the server and which didn't, but then you get into issues with
The text was updated successfully, but these errors were encountered: