daniel-de-wit/lighthouse-paperclip
最新稳定版本:v5.0.0
Composer 安装命令:
composer require daniel-de-wit/lighthouse-paperclip
包简介
Lighthouse GraphQL Directives for Paperclip attachment support
README 文档
README
This package will add two directives that will support working with czim/laravel-paperclip.
Installation
You can install the package via composer:
composer require daniel-de-wit/lighthouse-paperclip
Usage
Apply the @attachment directive to get an url for the attachment.
type Blog { image: String @attachment }
Apply the @variant to automatically generate an enum for available variant resizes.
type Blog { image(variant: _ @variant): String @attachment }
Testing
composer test
Development (docker)
make setup
make test
PHP CLI
make app
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 35.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-23
