Skip to content

lordhasyim/graphql-laravel

Repository files navigation

Nothing Special

crud graphql with laravel for learing purpose, im using this library https://github.com/rebing/graphql-laravel

there are another lib also im considering https://github.com/nuwave/lighthouse.

next i'll try this one

Installation

install

run migration

run seeder

$ composer install
$ php artisan migrate:fresh --seed

for testing you can use any graphql client, im using graphiql via browser

$ php artisan serve

example query

query{
    products{
      name
      description
      quantity
  }
}

with relationship

query{
  user(id:1){
    name
    email
    products{
      name
      description
      quantity
    }
  }
}

screenshot

Monggo di paido

About

Simple Crud with laravel and graphql

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published