Skip to content

OlegMarko/laravel-graphql-tasks

Repository files navigation

Build Status Total Downloads Latest Stable Version License

Install Project

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

Test Routes

GraphQL

    {
      tasks {
        id,
        title,
        is_completed
      }
    }
    mutation {
      newTask(title:"New Task") {
        id,
        title,
        is_completed
      }
    }
    mutation {
      updateTaskStatus(id: 501, status: true) {
        id,
        title,
        is_completed
      }
    }

Requirements

  • PHP
  • Sqlite
  • Composer

Releases

No releases published

Packages

No packages published