Open odfalik opened 8 months ago
Not sure what the bug is here, but this temporary workaround seemed to do the trick for me:
def execute(schema, query: str):
"""
Temporary workaround for https://github.com/graphql-python/graphene-sqlalchemy/issues/401
Use `execute(schema, query)` instead of `schema.execute(query)`
"""
return asyncio.run(
graphql(
schema.graphql_schema,
source=query,
context_value={},
)
)
based on this code
I'm trying to get batching set up on a 1:N relationship. Suppose a
Foo
has manyBar
s(I've also tried doing
batching=True
in theMeta
)Querying this resolver as such
results in
Cannot return null for non-nullable field BarObjectConnection.edges
. This query succeeds ifbatching
is disabled. I'm unsure as to why we'd be getting null forBarObjectConnection.edges
, though. Any ideas as to what might be leading to this?Versions: