We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider the code
@strawberry.type class Sub: node: relay.Node = relay.node() nodes: list[relay.Node] = relay.node() @strawberry.type class Query: @strawberry.field @staticmethod def sub(): return Sub schema = Schema(query=Query)
This code should work but doesn't, it requires an initialization for node
Note there is a workaround (initialization with None or empty list, or (I think whatever))
... @strawberry.field @staticmethod def sub(): return Sub(node=None, nodes=None)
The text was updated successfully, but these errors were encountered:
there is a better workaround: just provide a default of None
Sorry, something went wrong.
fix strawberry-graphql#3129, simply provide a default
cf957ca
No branches or pull requests
Consider the code
This code should work but doesn't, it requires an initialization for node
Note there is a workaround (initialization with None or empty list, or (I think whatever))
Describe the Bug
System Information
Additional Context
Upvote & Fund
The text was updated successfully, but these errors were encountered: