TodoList-graphql-model

基础的graphql数据模型

网址是:grapiql

Edit GraphqlHub


### 数据模型
1
2
3
id: ID
title: String
completed: Boolean


query :todos{id, title, complete} mutation:

1
2
3
4
5
6
- add(title: String!): todo
- toggle(id: String!): todo
- toggleAll(checked: Boolean!): [todo]
- destroy(id: String!): todo
- clearCompleted: [todo]
- save(id: String!title: String!): todo


TodoList Demo

runkit graphql playground