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
Here a code example
@strawberry.type class Sub: @strawberry.field def foo(self) -> str: return "bar" @strawberry.type class Query: sub: Sub = strawberry.field(default_factory=Sub) schema = strawberry.Schema(query=Query) # this fails result = schema.execute_sync( """ query TestQuery{ sub { foo } } """ )
Solution: initialize also the root schema or provide a fallback for None in get_result
The text was updated successfully, but these errors were encountered:
as the source is somewhere defined outside of strawberry, None must be handled
Sorry, something went wrong.
No branches or pull requests
Describe the Bug
Here a code example
Solution: initialize also the root schema or provide a fallback for None in get_result
System Information
Additional Context
Upvote & Fund
The text was updated successfully, but these errors were encountered: