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

Query by nested field not working #298

Open
caiquestow opened this issue Dec 28, 2021 · 1 comment
Open

Query by nested field not working #298

caiquestow opened this issue Dec 28, 2021 · 1 comment

Comments

@caiquestow
Copy link

caiquestow commented Dec 28, 2021

I am trying get a field from nested object, but always get all nested fields from it.

request example: request?query={id, name, book{id} }
return:
{ id: 1235 name: testing book{ id: 45 name: book test pages: 454 } }

it happens with someone as well?

@resurrexi
Copy link
Contributor

How does your serializer look like? It should be inheriting DynamicFieldsMixin.

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

2 participants