承接 dalnix/laravel-graphql-generator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dalnix/laravel-graphql-generator

Composer 安装命令:

composer require dalnix/laravel-graphql-generator

包简介

Generator of Queries, Types and Mutations for laravel-graphql

README 文档

README

Note: work in progress

This package will help you to generate Types, Queries and Mutations for Folkloreatelier/laravel-graphql's package.

Installation

Install composer package

$ composer install dalnix/laravel-graphql-generator

Use following command to generate your Types, Queries or Mutations, files will be created in app/GraphQL/Type, app/GraphQL/Mutation or app/GraphQL/Query. When creating a new Type, all columns of the table in the database will be imported, if you want to remove some fields that should'nt be able to access via GraphQL, edit your Type fields method.

$ php artisan dalnix:graphql:make

Publish config to change your GraphQL schema

$ php artisan vendor:publish

Test your queries or mutations: (app_url)/graphiql/custom (custom is the default laravel graphql generator schema)

Notes

Laravel graphql generator does not generate complete functioning resolve functions for your queries or mutations, you have to manually edit your queries or mutations to be able to return data.

You can't add relations via the command, to do so you must edit your Types in order to be able to make queries with eager loaded relations, see laravel-graphql's documention on eager loading relationships

Todos

  • Make it possible to add relations directly in the command

License

AGPL-3.0

统计信息

  • 总下载量: 52
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0
  • 更新时间: 2018-03-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固