Skip to content

NoScopeDevs/graphql-flutter-todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

GraphQL Flutter Todo App

A basic project showcasing a GraphQL API build with gqlgen for the backend and Flutter for the front end using package:graphql.

How to run?

To start the server:

cd go-graphql-server

go run server.go

To run the flutter app:

cd graphql_todo_app

flutter run lib/main.dart

Useful query/mutation for the gql playground

query getTodos{
  todos {
    id
    text
    isCompleted
  }
}

mutation saveTodo{
  saveTodo(input: {
    # id: "f4ccf8e0-82ba-4cac-b714-a5fd3950d322"
    text: "My Super Todo"
    isCompleted: true
  }) {
    id,
    text,
    isCompleted
  }
}

mutation saveTodoWithVariables($todoInput: TodoInput!) {
	saveTodo(input: $todoInput){
    id
    text
    isCompleted
  }
}

mutation deleteTodo{
  deleteTodo(id: "f4ccf8e0-82ba-4cac-b714-a5fd3950d322"){
    id
    text
	isCompleted
  }
}

About

A simple todo app that showcases graphql with flutter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published