arthem/graphql-mapper-bundle
Composer 安装命令:
composer require arthem/graphql-mapper-bundle
包简介
The GraphQL Mapper Symfony Bundle
README 文档
README
Symfony bundle for GraphQL Mapper
Installation
This is installable via Composer as arthem/graphql-mapper-bundle:
composer require arthem/graphql-mapper-bundle
Setup / Configuration
Enable the bundle:
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new Arthem\Bundle\GraphQLBundle\ArthemGraphQLBundle(), ); // ... } // ... }
Create your schema:
# app/config/graphql_schema.yml # Your schema here
See graphql-mapper documentation
Then declare your mapping file in the bundle configuration:
# app/config/config.yml arthem_graphql: mapping: files: - %kernel.root_dir%/config/graphql_schema.yml
Setup routing:
# app/config/routing.yml arthem_graphql: resource: "@ArthemGraphQLBundle/Resources/config/routing.yml" prefix: /graphql
Usage
Just call POST /app_dev.php/graphql/query with a "query" in the body
License
Released under the MIT License.
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-01-03