use GraphQL query on Production

Follow the GraphQL documentation, You have 2 ways to use graphql.

service URL endpoint

The endpoint of GraphQL is the same as the GraphQLi URL.

For example

use GraphQL client library

GraphQL has many support for popular programming languages. (See here We recommend to use the client to get the data from ours service. It reduce your time to manage the request to the GraphQL service.

use basic HTTP request

You can use pure HTTP request for get the data


We only accept POST method for query any data.

curl \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{ "query": "{ todos { edges { node { id completed text } } } }" }' \

for example, we use fetch to get the data.

fetch('', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
  body: JSON.stringify({ query: `
    query {
      todos {
        edges {
          node {
.then(res => res.json())
.then(res => console.log(;
Last updated on