You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I basically had to completely rebuild and override the apollo client as the current API basically only allows to pass options, but not redefine the link structure, which was needed to configure apollo-upload-link.
As the file upload feature is pretty common in web apps, it would be best to support it by default in the library, or at least allow an easy configuration via the exposed API.
Hello,
I'm trying to do a file upload using GraphQL but it's not working (Could not get uploaded file, be sure to conform to GraphQL multipart request specification). The file upload is defined in the GraphQL schema using a Upload type I'm trying to configure apollo-upload-client but can't find any example on how to do that in Nuxt 3. I've also come across a few comments saying that it's already built-in in the @nuxtjs/apollo library. What is the situation and what approach should I take?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
[UPDATE]
So I basically had to completely rebuild and override the apollo client as the current API basically only allows to pass options, but not redefine the link structure, which was needed to configure apollo-upload-link.
As the file upload feature is pretty common in web apps, it would be best to support it by default in the library, or at least allow an easy configuration via the exposed API.
Hello,
I'm trying to do a file upload using GraphQL but it's not working (Could not get uploaded file, be sure to conform to GraphQL multipart request specification). The file upload is defined in the GraphQL schema using a
Upload
type I'm trying to configureapollo-upload-client
but can't find any example on how to do that in Nuxt 3. I've also come across a few comments saying that it's already built-in in the@nuxtjs/apollo
library. What is the situation and what approach should I take?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions