Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1011 Bytes

README.md

File metadata and controls

51 lines (44 loc) · 1011 Bytes

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