Using Postman

Request Using Postman #

Postman is an API testing framework. You can download it from here (although if you need to download this, you should probably stick to GraphQL client for testing)

Steps To Make Request #

  • Select request type as POST
  • Set URL

Screenshot

  • Change the request type to GraphQL in body tab
  • Write a query. Example :
query ($id: ID) {
  blog (id: $id) {
    id
    title
    author {
        name
    }
  }
}
  • Set variables (Optional). Example :
{
 "id": "611d0433930907001698086d" 
}

You would get a JSON response. Example:

{
    "data": {
        "blog": {
            "id": "611d0433930907001698086d",
            "title": "101 Reasons Is A Waste Of Time ",
            "author": {
                "name": "Preston"
            }
        }
    }
}