graphql
graphql copied to clipboard
Getting Error :"Must Provide Query String"
A simple query request is working via the "GraphQL Playground" against our GraphQL server. However, it's getting error "Must Provide Query String" while using your package to make the request.
Not sure if that's because of the ContentType (multipart/form-data vs application/json). That's definitely a blocker.
Can you shed some light on to what your server expects?
Header content type for sure, try example like this:
echo '{ hello }' | http POST localhost:4000/graphql 'Content-Type:application/graphql'
Please update and try again following https://github.com/machinebox/graphql/pull/15.