strawberry-graphql/strawberry-django

Way to allow the default strawberry django field to accept UUID as an input

Offen

#145 geöffnet am 15.07.2022

 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Python (152 Forks)auto 404
enhancementhelp wanted

Repository-Metriken

Stars
 (496 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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.

Contributor Guide