$ go mod tidy
$ go run ./cmd/main.go
Url: http://localhost:3000/graphql
{
"query": "mutation createBook($title: String!, $author: String!, $year: Int!, $publisher: String!) {\n createBook(title: $title, author: $author, year: $year, publisher: $publisher) {\n id\n title\n author\n year\n publisher\n }\n}",
"variables": {
"title": "Book 1",
"author": "Author 1",
"year": 2021,
"publisher": "Publisher 1"
}
}
http://localhost:3000/graphql?query={books{title, author, year, publisher}}