![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
apollo_upload_server
Advanced tools
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.
Add this line to your application's Gemfile:
gem 'apollo_upload_server', '2.1'
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!
The following configuration options are supported:
This can be set on ApolloUploadServer::Middleware
:
ApolloUploadServer::Middleware.strict_mode = true
Doing so ensures that all mapped array values are present in the input. If this
is set to true
, then for following request:
{
"operations": {
"query": "mutation { ... }",
"operationName": "SomeOperation",
"variables": {
"input": { "id": "123", "avatars": [null, null] }
}
}
}
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.
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
.
The gem is available as open source under the terms of the MIT License.
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.
We love open source software! See our projects or contact us to design, develop, and grow your product.
FAQs
Unknown package
We found that apollo_upload_server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.