jerrybabah / todo_graphql_ver

hello graphql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL을 활용하여 만든 Todo 앱

레포 클론

$ 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

GraphiQL에서 테스트

/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
  }
}

About

hello graphql


Languages

Language:TypeScript 77.0%Language:JavaScript 23.0%