mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-15 14:42:06 +03:00
fix checking key in body
This commit is contained in:
parent
8928ec2dbe
commit
f6a0a772c7
|
@ -45,7 +45,7 @@ def graphql_query(
|
|||
if variables:
|
||||
body["variables"] = variables
|
||||
if input_data:
|
||||
if variables in body:
|
||||
if "variables" in body:
|
||||
body["variables"]["input"] = input_data
|
||||
else:
|
||||
body["variables"] = {"input": input_data}
|
||||
|
|
Loading…
Reference in New Issue
Block a user