8000
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 330a59f commit 9cbe59bCopy full SHA for 9cbe59b
flask_graphql/graphqlview.py
@@ -95,7 +95,11 @@ def dispatch_request(self):
95
only_allow_query = request_method == 'get'
96
97
if not is_batch:
- assert isinstance(data, dict), "GraphQL params should be a dict. Received {}.".format(data)
98
+ if not isinstance(data, dict):
99
+ raise HttpQueryError(
100
+ 400,
101
+ 'GraphQL params should be a dict. Received {}.'.format(data)
102
+ )
103
data = dict(data, **request.args.to_dict())
104
data = [data]
105
elif not self.batch:
0 commit comments