No release in over 3 years
Low commit activity in last 3 years
Rails middleware for using the apollo-fetch-upload npm package on the client.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.15
~> 10.0

Runtime

~> 5
 Project Readme

NOTE: This does not support batching!

Installation

Add this line to your application's Gemfile:

gem 'apollo_fetch_upload_rails_middleware'

And then do:

$ bundle install

Or install it yourself as:

$ gem install apollo_fetch_upload_rails_middleware

Usage

Using Railtie, this gem installs its middleware in your application. It will populate the GraphQL mutation inputs with the appropriate file metadata as described in the apollo-fetch-upload documentation.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/apollo_fetch_upload_rails_middleware.

License

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