./server/
-
Run dev server
npm run dev
-
Find the GraphQL Playground in
http://localhost:4000/
query {
getAuthors {
author
}
}
query {
getPosts(input: {
author: "author 2"
}) {
title
detail
}
}
query getPosts($input: PostInput!) {
getPosts(input: $input) {
title
detail
}
}
Variable declararion in Playground
{
"input": {
"author": "author 1"
}
}