定制 anwoon/blueprint-graphql-addon 二次开发

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

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

anwoon/blueprint-graphql-addon

最新稳定版本:1.0.4

Composer 安装命令:

composer require anwoon/blueprint-graphql-addon

包简介

The addon of blueprint for generate graphql type file for lighthouse or other library

README 文档

README

Installation

composer require --dev anwoon/blueprint-graphql-addon

you need to add this in your filesystem disk

'graphql' => [
    'driver' => 'local',
    'root' => 'graphql',
    'throw' => false,
],

Usage

Refer to Blueprint's Basic Usage to get started. Afterwards you can run the blueprint:build command to generate Graphql resources automatically. To get an idea of how easy it is you can use the example draft.yaml file below.

models:
  Post:
    title: string:400
    content: longtext
    total: decimal:8,2
    status: enum:pending,successful,failed
    published_at: timestamp nullable
    author_id: id foreign:users
    relationships:
      hasMany: Comment
      belongsToMany: Site
      belongsTo: User
type Post implements Model {
    id: ID!
    title: String!
    content: String!
    total: String!
    status: Status!
    published_at: Timestamp
    author_id: ID!
    comments: [Comment!] @hasMany
    sites: [Site!] @belongsToMany
    user: User! @belongsTo
}

enum Status {
    PENDING
    SUCCESSFUL
    FAILED
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-08-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固