run command git clone https://github.com/OlegMarko/laravel-graphql-tasks.git
and cd laravel-graphql-tasks
run command composer install
make .env
file like to .env.example
run command php artisan key:generate
run command php artisan migrate --seed
start a dev server php artisan serve
{
tasks {
id,
title,
is_completed
}
}
mutation {
newTask(title:"New Task") {
id,
title,
is_completed
}
}
mutation {
updateTaskStatus(id: 501, status: true) {
id,
title,
is_completed
}
}
- PHP
- Sqlite
- Composer