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