Closed axos88 closed 7 years ago
I think you're right, per spec a GET
should pass query parameters, but a POST
should send application/json
. This should be fairly easy to fix, feel free to beat me at a PR :)
I'm leaving for vacation tomorrow, so I guess you will win this time :)
Released as 0.2.0.
Based on http://graphql.org/learn/serving-over-http/#post-request, the variables should be sent over as a JSON object, since it is a JSON document after all.
Currently graphlient encodes the json, and sends it over as a string:
Due to this we had to introduce unnecessary complexity in the server to parse that string into a JSON hash, if it's given as a string, and leave it as is when it's coming from comforming clients.