$ git clone https://github.com/BABAHIRONOBU/todo_graphql_ver.git
$ cd todo_graphql_ver
$ npm install
or
$ cd todo_graphql_ver
$ yarn install
$ yarn start
/graphql에 접속하여 다음의 쿼리를 실행해보세요.
query getOne{
todo(id: 1) {
id
description
priority
}
}
query getAll{
todos {
id
description
priority
}
}
mutation addTodo{
addTodo(todo: {
description: "study graphql",
priority: 1
}) {
id
description
priority
}
}