{
post(id: 1) {
id
title
description
comments {
id
content
}
}
}
{
posts {
id
title
description
comments {
id
content
}
}
}
{
postsPagination(first: 5, after: "") {
edges {
node {
id
title
description
comments {
id
content
}
}
}
pageInfo{
endCursor
hasNextPage
startCursor
hasPreviousPage
}
}
}
{
comments {
id
content
post {
id
title
description
}
}
}
mutation {
createPost(
input:{
title: "title"
description: "description"
userId: 1
}
){
post {
id
title
description
user{
name
email
}
}
}
}
mutation {
updatePost(
input:{
id: 1
title: "title-updated"
description: "description-updated"
}
){
post {
id
title
description
}
}
}
mutation {
deletePost(
input:{
id: 1
}
){
post {
id
title
description
}
}
}
mutation {
createComment(
input:{
postId: 1
content: "NEW COMMENT"
}
){
comment {
id
content
post {
id
title
comments {
id
content
}
}
}
}
}
mutation {
updateComment(
input:{
id: 1
content: "Edit COMMENT"
}
){
comment {
id
content
post {
id
title
comments {
id
content
}
}
}
}
}
mutation {
deleteComment(
input:{
id: 1
}
){
comment {
id
content
post {
id
title
comments {
id
content
}
}
}
}
}