{"repo":"jetruby/apollo_upload_server-ruby","free":true,"listed":false,"github":"https://github.com/jetruby/apollo_upload_server-ruby","clone":"git clone https://github.com/jetruby/apollo_upload_server-ruby.git","description":null,"language":"Ruby","stars":189,"topics":["middleware","ruby","rails","graphql","upload"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"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: 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: That's all folks! Configuration The following configuration options are supported: Strict Mode This can be set on ApolloUploadServer::Middleware : Doing so ensures that all mapped array values are present in the input. If this is set to true , then for following request: A mapping for variables.input.avatars.0 or variables.input.avatars.1 , will work, but one for variables.input.avatars.100 will not, and will raise an error. In strict mode, passing empty destination arrays will always fail. 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. Tests can be run via bundle exec rspec . License The ","default_branch":null,"files":null,"tree":[],"storefront":"/r/jetruby","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jetruby/apollo_upload_server-ruby/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}