strawberry-graphql/strawberry-django
Way to allow the default strawberry django field to accept UUID as an input
Ouverte
#145 ouverte le 15 juil. 2022
enhancementhelp wanted
Métriques du dépôt
- Stars
- (496 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
Description
I am making a query with the following structure:
@strawberry.type
class ObjectQuery:
object: ObjectNode = strawberry.django.field()
However, the input for this requires a type of pk: ID. Is it possible to change this to be of type pk: UUID? My current solution for this is just to write a generic custom resolver.