Open Elawphant opened 3 weeks ago
Hey @Elawphant ,
When using @strawberry_django.type
and inheriting the type from Node
it will automatically have an id: GlobalID
with a custom resolver that will return the correct value in it.
Is there a reason to why you are trying to define it yourself?
The reason was to keep the types defined with all fields the same way.
I made an addon on top of strawberry_django
which makes the modules from the models. Here's the link
Strawberry Jam 🍓
@bellini666 I would appreciate some review/feedback on the generated modules, whether they are providing configurations in accordance with the best practices for strawberry django. Also I want to make the tests generation.
@Elawphant ahhh I see.
I need to think about how to workaround that properly. In the meantime, you can probably skip the id
field when creating a type that inherits from Node
.
Regarding the lib, very interesting! Will take a look at it as soon as I can 😊
According to documentation something like this
The response comes with ids with pk values
However this works properly