定制 liinkiing/graphql-maker-bundle 二次开发

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

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

liinkiing/graphql-maker-bundle

最新稳定版本:1.3.0

Composer 安装命令:

composer require liinkiing/graphql-maker-bundle

包简介

Bundle to easily create GraphQL types for Overblog GraphQLBundle

README 文档

README

Bundle to easily create GraphQL types for Overblog GraphQL Bundle by using the new Symfony Maker component

Installation

$ composer require liinkiing/graphql-maker-bundle

If you use Symfony flex, it will be automatically register under the bundles.php file. Otherwise, register the bundle manually

// AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Liinkiing\GraphQLMakerBundle\GraphQLMakerBundle(),
        ];

        // ...
    }
}

Configuration

By default, no configuration is needed. It uses convention over configuration, but if you wanna customize the behaviour, you can add a config file config/packages/dev/graphql_maker.yaml :

graphql_maker:
  root_namespace: App\GraphQL # Customize the root namespace where PHP mutations and resolver will be
  schemas: # You can also define, for any schemas if you use many, a custom out directory for types files
    public:
      out_dir: '%kernel.project_dir%/config/graphql/public/types'
    internal:
      out_dir: '%kernel.project_dir%/config/graphql/internal/types'
    preview:
      out_dir: '%kernel.project_dir%/config/graphql/preview/types'

Usage

Currently, you can generate:

  • type
  • connection
  • query
  • mutation
$ bin/console make:graphql:type       [--schema]
$ bin/console make:graphql:connection [--schema]
$ bin/console make:graphql:query      [--schema]
$ bin/console make:graphql:mutation   [--schema]
$ bin/console make:graphql:resolver

Then, you will be asked some questions to generate what you asked, à la Maker

统计信息

  • 总下载量: 3.89k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固