django-restql icon indicating copy to clipboard operation
django-restql copied to clipboard

Query by nested field not working

Open caiquestow opened this issue 2 years ago • 1 comments

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?

caiquestow avatar Dec 28 '21 19:12 caiquestow

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

resurrexi avatar Jan 07 '22 04:01 resurrexi