{
posts {
edges {
node {
id
body
}
cursor
}
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
}
}
mutation{
CreatePost(input: {body: "Body title"}) {
postEdge {
node {
id
body
}
}
error
}
}
mutation{
UpdatePost(input: {id: "123456789", body: "Body title two"}) {
postEdge {
node {
body
}
cursor
}
error
}
}
mutation{
DeletePost(input: {id: "123456789"}) {
error
success
}
}
mutation UserRegisterMutation($input: UserRegisterInput!) {
userRegisterMutation(input: $input){
token
me {
email
displayName
username
id
password
}
clientMutationId
}
}
{
"input": {
"displayName":"japa",
"username": "japa",
"email": "japa@gmail.com",
"password": "japinha",
"clientMutationId": ""
}
}
mutation UserLoginMutation($input: UserLoginInput!) {
userLoginMutation(input: $input) {
token
me {
username
password
}
clientMutationId
}
}
{
"input": {
"username": "japa",
"password": "japinha",
"clientMutationId": ""
}
}