-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best way to have upload support #411
Comments
We have image upload feature in the pipeline #176 Doing image upload using graphql mutation is fine and doesn't have any security/performance impact on the application. One of the major service for backend https://www.graph.cool/ also does the file upload using graphql mutations. At the moment Apollo Upload Client and Apollo Upload Server seem to be the go-to choice. However, keep in my mind that we have already switched to Apollo V2 and Apollo Upload Client does not support V2 out of the box yet (Check Issue). You need to use Apollo Fetch Upload along with Apollo Upload Client to make it work for V2. Here is one example https://github.com/jaydenseric/apollo-upload-examples/blob/master/app/helpers/with-data.js#L23 We welcome all PR's. So in case, you manage to get it working with the kit. We will appreciate if you could submit a PR for that. |
woohooo 👍 thanks guys, I am closing this :) |
What is the best way to have upload support with the starter kit, I was thinking to use https://github.com/jaydenseric/apollo-upload-client and https://github.com/jaydenseric/apollo-upload-server
or should I just create a rest endpoint /upload to handle all the uploads and just use graphql to save the references?
The text was updated successfully, but these errors were encountered: