Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

First, using a POST request, then add graphQL URL [url]http://localhost:8080/graphql to the app. Then, add a Header with Content-Type as application/json.

Alt text Adding a POST request to the GraphQL API

For each of the request, enter into "Body" in Postman and then "Send" the request.

findDogBreeds

{
  "query": "{findAllDogs { id breed } }"
}

Alt text

findDogBreedByID

{
    "query":"{findAllDogs { id breed } }"
}

Alt text

findAllDogNames

{
    "query":"{findAllDogs { id name } }"
}

Alt text

updateDogName

{
    "query":"mutation {updateDogName(newName:\"Ghost\", id:4) { id name breed } }"
}

Alt text

deleteDogBreed

{
    "query":"mutation {deleteDogBreed(breed:\"Pomeranian\")}"
}

Alt text