fast_jsonapi
fast_jsonapi copied to clipboard
Using fields option doesn't return attributes that contain underscore
When using fields: { movie: [:name_with_underscore] } - the attribute will not be returned.
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] })
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