prisma-labs / python-graphql-client

Simple GraphQL client for Python 2.7+
MIT License
155 stars 46 forks source link

Make execute return json instead of string #15

Closed rohitghatol closed 5 years ago

rohitghatol commented 5 years ago

data = client.execute(query,variables) result = json.loads(data) Can client.execute() return json instead of string?

ssshah86 commented 5 years ago

It would be a breaking change to implement this request. It's best you just run json_res = json.loads(result) to convert the output. If you inspect the type it will return a dict as you desire.