gsans / todo-react

Todo List example using React and Apollo Client
MIT License
10 stars 2 forks source link

todo-react

Example forked from angular-apollo-todo-example

You can read the blog post GraphQL and the amazing Apollo Client covering parts of it.

Updated react-apollo to use 0.13.0.

Getting Started

I have used an early access to a graph.cool account. Code only for reference purposes.

The GraphQL data model used is:

type Todo {  
  id: ID!
  text: String!
  complete: Boolean!
}

type Query {
  allTodoes(skip: Int, take: Int): [Todo!]!
}

type Mutation {
  createTodo(text: String!, complete: Boolean!): Todo
  updateTodo(id: ID!, text: String, complete: Boolean): Todo
}

schema { 
  query: Query,  
  mutation: Mutation 
}