Note: this implementation uses v1 of the GraphQL multipart request spec, so you should use apollo-upload-client library v5.1.1.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install apollo_upload_server
Middleware will be used automatically.
Gem adds custom
Upload type to your GraphQL types.
ApolloUploadServer::Upload type for your file as input field:
input_field :file, !::
That's all folks!
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.
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the ApolloUploadServer project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
ApolloUploadServer is maintained and founded by JetRuby Agency.