定制 arthem/graphql-mapper-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 4
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-01-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固