https://immense-thicket-72966.herokuapp.com/
query{
users{
id
name
email
comments{
id
text
}
posts{
id
title
}
}
}
mutation{
createUser(data:{ name: "Mario", email: "[email protected]",age:33 })
{
id
name
email
age
posts{
id
}
}
}
mutation{
updateUser(id:"1", data:{
name: "Mike",
email: "[email protected]"
age: 18
}){
id
name
email
age
}
}
mutation{
deleteUser(id: "1"){
id
}
}
query{
comments{
id
text
author{
name
}
}
}
subscription{
comment(postId: "2"){
mutation
data{
id
text
author{
id
name
}
}
}
}
mutation{
createComment(data:{
text: "A comment", author:"1", post: "2"
}){
id
text
author{
name
}
post{
title
}
}
}
mutation{
updateComment(id:"c4f76db4-c334-4b40-8bbf-48423a5dc0cd",
data:{ text:"This is my new comment updated"}
){
id
text
}
}
mutation{
createComment(data:{
text: "A comment", author:"1", post: "1"
}){
id
text
author{
name
}
post{
title
}
}
}
mutation{
updateComment(id:"b2d9d99a-f141-4576-96c4-7f4eb1cddeb2",
data:{ text:"New text"}
){
id
text
}
}
mutation{
deleteComment(id: "102"){
id
}
}
query{
posts{
id
title
author{
name
}
}
}
subscription{
post{
mutation
data{
id
title
body
author{
id
name
}
}
}
}
mutation{
updatePost(
id: "2",
data:
{
title: "New title",
published: true
}
){
id
title
body
published
}
}
subscription{
post{
mutation
data{
id
title
body
author{
id
name
}
}
}
}
mutation{
deletePost(id:"3"){
id
title
body
published
}
}
subscription{
post{
mutation
data{
id
title
body
author{
id
name
}
}
}
}
mutation{
createPost(data:{
title: "New Post",
body:"New Body",
published:true,
author: "3"
}){
id
title
body
published
author{
name
}
}
}
mutation{
createPost(data:{
title: "New Post",
body:"New Body",
published:true,
author: "3"
}){
id
title
body
published
author{
name
}
}
}
mutation{
updatePost(
id: "2",
data:
{
title: "New title",
published: true
}
){
id
title
body
published
}
}
mutation{
deletePost(id:"3"){
id
title
body
published
}
}
subscription{
count
}