Yezy Ilomo
Yezy Ilomo
I think [django-restql](https://github.com/yezyilomo/django-restql) is more advanced and simpler, it works much like GraphQL.
You should use `NestedField` on your `attributes` field too, like ```py class ProductSerializer(NestedModelSerializer): persons = NestedField(PersonSerializer, required=True, many=True) attributes = NestedField(ProductAttributesSerializer, required=True, many=True) ```
If `attributes` is not a nested field, why would you need to replace it with a serializer, I guess my question is when user pass product attributes (`volume_of_solution_prepared`, `volume_units`) what...
You’re adding fields after django-restql has run, so basically you’re adding fields after django-restql has excluded them. You could use `SerializerMethodField` to add other fields as ```py from rest_framework import...
> Hi, > I use **NestedField** (with **accept_pk_only**) on **DynamicFieldsMixin** and i get this result: > `'int' object has no attribute 'get'` > > Can you help me to solve...
HTTP 400 is usually associated with an error message, would be helpful to see one otherwise it would be hard to know what’s really wrong, I’ve never used lambda before...
The link you sent works just fine to me, it returns only user IDs..
> If it's a link, it will work but if you copy and paste the link, it won't work. > > [https://wqaside363.execute-api.us-west-2.amazonaws.com/dev/api/my-user/?query={id,username}](https://wqaside363.execute-api.us-west-2.amazonaws.com/dev/api/my-user/?query=%7Bid,username%7D) if you copy this directly, it won't work....
Can I see how the `sample_groups` field is defined in your serializer?. Including `HoldbackGroupSerializer` will be helpful cuz it's the one that has been included here `NestedField(HoldbackGroupSerializer, many=True, required=False, create_ops=["create"])`...
I think you might have a problem somewhere else in your code, I've copied your example as it is and tested it on my side but I've not encountered that...