Skip to content
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

Using fields option doesn't return attributes that contain underscore #436

Open
shaul75 opened this issue Jul 30, 2019 · 2 comments
Open

Comments

@shaul75
Copy link

shaul75 commented Jul 30, 2019

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

@shaul75 shaul75 changed the title Using fields option doesn't return attributes that have underscore Using fields option doesn't return attributes that contain underscore Jul 30, 2019
@niklilland
Copy link

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] })

@kapilnarula
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants