debian-mirror-gitlab/debian/gems-compat/apollo-upload-server-2.0.0.beta.3
2019-08-03 11:04:32 +05:30
..
bin Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
lib Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
.gitignore Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
.rspec Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
.travis.yml Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
apollo_upload_server.gemspec Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
CODE_OF_CONDUCT.md Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
Gemfile Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
Gemfile.lock Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
LICENSE.txt Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
Rakefile Embed apollo_upload_server 2019-08-03 11:04:32 +05:30
README.md Embed apollo_upload_server 2019-08-03 11:04:32 +05:30

ApolloUploadServer

Middleware which allows you to upload files using graphql-ruby, apollo-upload-client and Ruby on Rails.

Note: this implementation uses v2 of the GraphQL multipart request spec, so you should use apollo-upload-client library >= v7.0.0-alpha.3. If you need support for v1 of the GraphQL multipart request spec, you must use version 1.0.0 of this gem.

Installation

Add this line to your application's Gemfile:

gem 'apollo_upload_server', '2.0.0.beta.3'

And then execute:

$ bundle

Or install it yourself as:

$ gem install apollo_upload_server

Middleware will be used automatically.

Gem adds custom Upload type to your GraphQL types. Use ApolloUploadServer::Upload type for your file as input field:

  input_field :file, ApolloUploadServer::Upload

That's all folks!

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jetruby/apollo_upload_server-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the ApolloUploadServer projects codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About JetRuby

ApolloUploadServer is maintained and founded by JetRuby Agency.

We love open source software! See our projects or contact us to design, develop, and grow your product.