mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-28 12:33:43 +03:00
fix variables
key in body (#1050)
This commit is contained in:
parent
8928ec2dbe
commit
8408c51bf9
|
@ -45,7 +45,7 @@ def graphql_query(
|
||||||
if variables:
|
if variables:
|
||||||
body["variables"] = variables
|
body["variables"] = variables
|
||||||
if input_data:
|
if input_data:
|
||||||
if variables in body:
|
if "variables" in body:
|
||||||
body["variables"]["input"] = input_data
|
body["variables"]["input"] = input_data
|
||||||
else:
|
else:
|
||||||
body["variables"] = {"input": input_data}
|
body["variables"] = {"input": input_data}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user