Skip to content

garybutton/simple-django-graphql-todos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Really simple todo api using Graphene

Setup

pip install -r requirements.txt
python manage.py migrate
python manage.py runserver

Queries

/graphiql

Create todo

mutation MyMutation {
  createTodo(input:{clientMutationId:"a", title:"Test Todo", description:"Testing"}) {
    todo {
      id
      title
      description
    }
    ok
  }
}

Get todos

{
  todoList: allTodos {
    totalCount
    edges {
      node {
        title
        description
      }
    }
  }
}

Sources

Graphene

About

Really simple todo api using Graphene

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages