In this tutorial you're testing the input/output by the Graphiql web UI. How would I make the request from within the code, instead of the UI?
You could send a HTTP POST request to the graphql server. For example using curl you can call the hello endpoint as follows
curl -X POST -H "Content-Type: application/json" -d "{\"query\": \"{ hello }\"}" http://localhost:5000/graphql
You can checkout the following url to know more about accessing the graphql endpoints from a client.
graphql.org/graphql-js/graphql-cli...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
In this tutorial you're testing the input/output by the Graphiql web UI.
How would I make the request from within the code, instead of the UI?
You could send a HTTP POST request to the graphql server. For example using curl you can call the hello endpoint as follows
You can checkout the following url to know more about accessing the graphql endpoints from a client.
graphql.org/graphql-js/graphql-cli...