-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Support apollo-client v2 #33
Comments
If you would like to help out, the examples could do with an update to |
An update: Apollo Link now uses the native fetch implementation instead of |
I have been working on an upload link for Apollo Client v2 (keep an eye on the
In the meantime, |
Hi @jaydenseric , could you provide an example for that? I can't seem to make it work using Apollo v2 without batching. |
I think it would be fine to have a separate publish for an |
I've got a non-batching upload terminating link working in the With a bit more polish and testing we'll be able to publish a beta. The API diverges slightly from
|
@leethree I don't have an example handy sorry, I have never not used batching. Perhaps it is not easy or possible, in which case it might be best to use batching until this update is published. This is something like my 4th implementation of uploads for Apollo Client 😓 |
@jaydenseric hey, since new apollo packages are growing like mushrooms after rain, what's the best way to do file uploads now? What stable packages combo would you suggest and with or without batching? p.s. sorry you have to re-implement this every time apollo decides to change internals, it really sucks. |
Just published v6.0.0-beta.1 🚀 It does not require any changes to your codebase other than a new Apollo Client setup. I'll update apollo-upload-examples shortly. Unfortunately batching is not available in this release; hopefully we can support it soon in an update. I'm waiting on a solid batching link from Apollo to reference. If you desperately need batching, you can continue to use apollo-fetch-upload with |
Updated apollo-upload-examples: Here is the new Apollo Client setup. Closing this now we support the final Apollo Client v2 API. I will raise a new issue to add back batching support. Please everyone test out the beta and raise any issues so we can rush it into production 🙌 |
Why not return raw apollo error? I can not catch GraphQL errors. In raw error object exists: In apollo-upload-client just operation, graphQLErrors (null), networkError. response required. |
@Fi1osof see #47 (comment). |
Hi Jayden!
I think I may have read you're already working on this (i.e. creating a custom Link)? Do you need any help with this? https://github.com/apollographql/apollo-link/blob/master/docs/implementation.md
Adam
The text was updated successfully, but these errors were encountered: