mvn spring-boot:run
mutation newAuthor($input: String!) {
newAuthor(name: $input) {
id
name
}
}
mutation newPost($title: String!, $content: String!, $mmm: String!,) {
newPost(title: $title, content: $content, author: $mmm) {
id
title
content
author {
id,
name
}
}
}
query findPosts {
posts {
id
title
content
author {
id,
name
}
}
}
query findAll {
authors {
id
name
}
}
query findPageAuthors($page: Int!) {
pageAuthors(pageSize: $page) {
pageNumber
numberPages
totalElements
authors {
id
}
}
}
Variables
{
"input": "Robson Kadees",
"page": 0,
"title": "TEste",
"content": "jdsaoijdisajdojiasijodas",
"mmm": "5001"
}