Skip to content

gsans/todo-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 
}

About

Todo List example using React and Apollo Client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published