We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff08d18 commit 77342deCopy full SHA for 77342de
src/graphql_server/runtime.py
@@ -163,6 +163,10 @@ def _parse_and_validate(
163
# async with extensions_runner.parsing():
164
if not query:
165
raise GraphQLError("No GraphQL query found in the request")
166
+ elif not isinstance(query, str) and not isinstance(query, DocumentNode):
167
+ raise GraphQLError(
168
+ f"Provided GraphQL query must be a string or DocumentNode, got {type(query)}"
169
+ )
170
171
try:
172
if isinstance(query, str):
0 commit comments