Skip to content

Instantly share code, notes, and snippets.

# QUERY AND MUTATION
query authors {
authors(first:5, offset:97) {
id,
firstName,
lastName
}
}
mutation createAuthor($inputPage:CreateAuthorInput!) {
# mutation section
# Write your query or mutation here
mutation publishPage($var:ID!) {
publishPage(pageId: $var) {
id
}
}
# Query variables section, where long string is a pageId from db
{
@dawidnawrot
dawidnawrot / books.json
Last active April 23, 2023 13:06 — forked from nanotaboada/books.json
A small-sized (8 items) sample collection of free Books in valid JSON (RFC 8259) format
[{"tytul":"Historia Pcimia Dolnego","autor":"Jan Nowak","cena":55},{"tytul":"Potrawy z trawy","autor":"Kazimierz Vege","cena":42},{"tytul":"Mi\u0119sny Je\u017c - przepisy keto","autor":"Rafa\u0142 Rze\u017anik","cena":74},{"tytul":"Nobody is perfect","autor":"Steven Nobody","cena":15}]