strawberry-graphql/strawberry-django

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

開放

#145 建立於 2022年7月15日

 (3 則留言) (1 個反應) (0 位負責人)Python (152 個分叉)auto 404
enhancementhelp wanted

倉庫指標

星標
 (496 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南