-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
File upload #586
Comments
This tutorial was posted a few days ago, haven't tried it yet. |
i tried but error is coming "GraphQL error: Unknown operation named """ |
Can you be more specific? When does this error occur? Could you share some code? Given the error you provided, specifically the request format would be of interest. It seems the operationName or query may be invalid. (Also see here.) |
my apollo config file as follow: import ApolloClient from 'apollo-client'; import { print as printGraphQL } from 'graphql-tag/printer'; export function createNetworkInterface(url) {
} const networkInterface = createNetworkInterface( export const client= new ApolloClient({ when i am just commenting the line kindly suggest ? |
Does the error happen on client or server? If you are using |
this is in apolloclient and i have my graphqljs server which support fileupload. |
It's been silent here for about a month in the thread and I'm curious about the plans on file upload feature in Apollo. This is currently what's stopping me from using this stack in the first place. Will probably try |
The strategy I'm currently using for uploads is to pretty much to send a Base64 DataURI to the endpoint. Apart from the increased payload sizes, are there any obvious issues with this? I find this approach easy to reason about as all of my application logic is contained within GraphQL. |
Going to close this as it seems like a duplicate of apollographql/apollo#65. @karthikiyengar your comment may be valuable in that thread if you want to re-post there 😊 |
Link to #65 is broken. Any idea what happened? |
For anyone stumbling upon this issue: |
i am new to apolloclient and and things is going well except file upload.Kindly suggest me how to handle multipartform data with file upload.
your help is always appreciated
regards
gmchaturvedi
The text was updated successfully, but these errors were encountered: