Package Data | |
---|---|
Maintainer Username: | stenin-nikita |
Maintainer Contact: | stenin.nikita@gmail.com (Nikita Stenin) |
Package Create Date: | 2017-08-13 |
Package Last Update: | 2017-08-22 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 03:18:39 |
Package Statistics | |
---|---|
Total Downloads: | 67 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 3 |
GraphQL & Relay for Laravel
Require this package with composer:
composer require laracomponents/graphql
Open your config/app.php and add the following to the providers array:
'providers' => [
// ...
LaraComponents\GraphQL\ServiceProvider::class,
],
Publish the configuration file:
php artisan vendor:publish --provider="LaraComponents\GraphQL\ServiceProvider"
Create a schema:
$ php artisan make:graphql:scheme DefaultSchema
Create a type:
$ php artisan make:graphql:type UserType
Which type would you like to create?:
[0] AbstractType
[1] AbstractScalarType
[2] AbstractObjectType
[3] AbstractMutationObjectType
[4] AbstractInputObjectType
[5] AbstractInterfaceType
[6] AbstractEnumType
[7] AbstractListType
[8] AbstractUnionType
Create a field:
$ php artisan make:graphql:field UsersField
All detailed documentation is available on the main GraphQL repository – http://github.com/youshido/graphql/.
The MIT License (MIT). Please see License File for more information.