fast_jsonapi icon indicating copy to clipboard operation
fast_jsonapi copied to clipboard

Using fields option doesn't return attributes that contain underscore

Open shaul75 opened this issue 6 years ago • 2 comments

When using fields: { movie: [:name_with_underscore] } - the attribute will not be returned.

shaul75 avatar Jul 30 '19 14:07 shaul75

I've ran into this issue as well. I believe if you try fields: { movie: [:nameWithoutUnderscore] }, it should work. I haven't tested the fields array explicitly, but I have dealt with this issue when the resource name is two words (e.g. instead of movies, something like fields: { movieName: [:name] })

niklilland avatar Sep 24 '19 21:09 niklilland

It seems Netflix has abandoned this project. The community created a new fork to continue supporting this project. Please refer https://github.com/fast-jsonapi/fast_jsonapi

kapilnarula avatar Oct 19 '19 05:10 kapilnarula