laracomponents/graphql
Composer 安装命令:
composer require laracomponents/graphql
包简介
GraphQL & Relay for laravel
README 文档
README
Introduction
GraphQL & Relay for Laravel
Requirements
- PHP 5.6.4+ or newer
- Laravel 5.1 or newer
Installation
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"
Simple Usage
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
Documentation
All detailed documentation is available on the main GraphQL repository – http://github.com/youshido/graphql/.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 68
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-08-13