๐ณ๐๏ธ Building Todos app using Node, React, Apollo.
For server
$ cd server && yarn
For client
$ cd client && yarn
For server
$ cd server && yarn start
For client
$ cd client && yarn start
todos: [Todo]
query {
todos {
id
title
completed
}
}
todo(id: String!): Todo
query {
todo(id: "b658@556e@8c21-ef97_6bf9") {
id
title
completed
}
}
createTodo(title: String): Todo
mutation {
createTodo(title: "Learn Apollo") {
id
title
completed
}
}
updateTodo(id: String!, title: String, completed: Boolean): Todo
mutation {
updateTodo(id: "1431#9e3a_2936^8b12-235a", title: "Learn Prisma", completed: true){
id
title
completed
}
}
deleteTodo(id: String!): Todo
mutation {
deleteTodo(id: "145a*ccde$5455^1694*633c") {
id
title
completed
}
}
๐ Awesome
Thanks goes to these wonderful people (emoji key):
Cuong Duy Nguyen ๐ป ๐ |
This project follows the all-contributors specification. Contributions of any kind welcome!
MIT ยฉ cuongw