mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-24 18:44:08 +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:
|
||||
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