You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason Strawberry almost always returns 200 OK is because that's part of the GraphQL specification. Following the specification is important to stay compatible with standard GraphQL clients and tools.
Feature Request Type
Description
def default_resolver(root, field):
"""resolver"""
try:
return operator.getitem(root, field)
except KeyError:
return getattr(root, field)
config = StrawberryConfig(
default_resolver=default_resolver
)
schema = strawberry.Schema(query=Query,config=config)
graphql_app = GraphQLRouter(schema, graphiql = env!='production')
Upvote & Fund
The text was updated successfully, but these errors were encountered: