I have a Query type in my schema that defines some custom resolvers and uses strawberry_django.field/strawberry_django.node without providing resolver functions.
@strawberry_django.type(SomeModel)
class SomeType:
id: auto
name: auto
@strawberry.type(name='Query')
class Query:
some_type_query: SomeType = strawberry_django.field()
@strawberry_django.field()
def custom_resolver(self) -> bool:
return True
I want to return a Query along with the mutation result, enabling the user to fetch whatever data they need in a single request. However, when I initialize a Query object, I must provide arguments.
I have a
Query
type in my schema that defines some custom resolvers and usesstrawberry_django.field
/strawberry_django.node
without providing resolver functions.I want to return a
Query
along with the mutation result, enabling the user to fetch whatever data they need in a single request. However, when I initialize a Query object, I must provide arguments.Is it possible to initialize the
Query
type without providing all the arguments? Or is there an easy way to provide the arguments to the query?Upvote & Fund