daniel-de-wit/lighthouse-paperclip 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

Latest Version on Packagist Software License Build Status Coverage Status Total Downloads

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-23