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
其他信息
- 授权协议: Unknown
- 更新时间: 2022-08-31