-
-
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 v3 #174
Comments
Yes, once it is released we will update this package to support it. Because this would be a breaking change for people using Apollo Client v2 we have to wait for v3 to come out of beta. The https://github.com/apollographql/apollo-client/milestone/14 |
It seems to work as well as before for me. |
@jaydenseric I'm using @apollo/client beta v3 and getting this error: Type 'ApolloLink' is missing the following properties from type 'ApolloLink': onError, setOnError TS2739 const apolloClient = new ApolloClient({ |
@jaydenseric FYI: It's out of beta now. The current state is rc.2 so it seems to be released soon. |
Will there be a package name change ( |
@Vultraz I think it will stay |
Any hints on how to do the setup with the latest rc-9 of apollo-client? |
In addition to waiting for Apollo to release v3, you can track these PRs: |
@jaydenseric thanks for your info, I hope there can be an initial example soon. Confused why apollo-client still didn't built the functionality into the core after v3 rewrite |
Hello, I know never use a beta in a prod project. Was not my idea. We're using React Native and TypeScript btw. Error: Type 'ApolloLink' is missing the following properties from type 'ApolloLink': onError, setOnError TS2739 Thank you. |
@cr1979 Can you try using my fork? It should be possible to install it via github. It's based on the open PR. "apollo-upload-client": "github:sapkra/apollo-upload-client#apollo-client-v3-self-build" |
I'm working on this today and potentially tomorrow (Melbourne, Australia time) in anticipation of Apollo Client v3 releasing today/tomorrow. |
It's a bit difficult to figure out the earliest There are no descriptions for GitHub releases: https://github.com/apollographql/apollo-client/releases There are no individual changelog entries for v3 prerelease versions: |
Wouldn't 3.0.0 final be best? The RC ones are probably full of bugfixes. |
@sapkra I tried your fork but I get these errors:
|
@cr1979 that's because you're using Windows, which isn't supported for dev because it doesn't support unix commands like |
@jaydenseric yes I saw that :( I'm currently using the computer from my company. I can't switch to linux currently. Hmmm, what's the plan. Wait till you have a new apollo-client-upload release or I have to downgrade to Apollo v2. |
@cr1979 Because I already have the prebuild lib in my fork you can just use it without building it locally again. I'm using yarn which has a bug that the prepare script are not executed if the package is coming from a git repo. To fix your problem I removed all scripts now and bumped the version to alpha.2. Can you try it again? |
@sapkra I tried it and I could install it. Now I have to create a type definition file for typescript. But I will try it in the company again, tomorrow. |
As an aside to this issue, for anyone like me arriving here needing to upload files with apollo v3, I've sidestepped this by encoding the file contents as a base64 string and then sending that and the filename, decoding the file contents on the server and writing them to a file. |
@robphoenix that was my original plan of uploading file to the server. But I have a GraphQL message limit of 100kb. I know that the default settings but I had no chance to raise the limit. We are using Molecular Apollo Server and the setting will be ignored.
so my hope I'll get this fixed with apollo-upload-client. I tried it with Insomnia and I can stream files to the server as multipart so far. |
Does anyone know if |
Support Apollo Client v3, fixes #174 .
Do you have any plans to support ApolloLink from @apollo/client v3?
See documentation of it here https://www.apollographql.com/docs/react/v3.0-beta/api/link/introduction/
The text was updated successfully, but these errors were encountered: