https://dev.classmethod.jp/articles/graphql-tutorial-nodejsexpress/ https://medium.com/codingthesmartway-com-blog/creating-a-graphql-server-with-node-js-and-express-f6dddc5320e1
query getSingleCourse($courseID: Int!) {
course(id: $courseID) {
title
author
description
topic
url
}
}
{
"courseID":1
}
query getCourses($topic: String!) {
courses(topic: $topic) {
title
url
}
}
{
"topic":"Node.js"
}
mutation updateCourseTopic($id: Int!, $topic: String!) {
updateCourseTopic(id: $id, topic: $topic) {
title
author
description
topic
url
}
}
{
"id": 1,
"topic": "トピックタイトル"
}