-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
"Must provide Document" Error #18
Comments
I have not seen this error before 🤔 To start with, it's always good to confirm the right version of node is running. Is |
@jaydenseric
Do you think it might be a problem with express ? So that I cant upload a file because I'm not allowed to
This is the XHR Request from the client. And do I need to use graphqlExpress? because I'm using apollo-server-express instead |
The request looks ok. It looks like you are not using express. I don't know how your middleware fits together in this situation. If you add a custom debug middleware right between |
Closing because the issue is currently not reproducible, and the entire API is about to change anyway. Feel free to continue the discussion if anything comes to light 🙂 |
Hi there,
today I was trying to implement a Avatar Upload system for user profiles.
So I came across apollo-upload server and client.
After implementing it like shown in the examples I'm getting this error and dont know how to solve it
Error: Must provide document at invariant (/Users/tjarkkuehl/Desktop/semtexxx.de-website/server/node_modules/graphql/jsutils/invariant.js:18:11) at Object.validate (/Users/tjarkkuehl/Desktop/semtexxx.de-website/server/node_modules/graphql/validation/validate.js:58:34) at doRunQuery (/Users/tjarkkuehl/Desktop/semtexxx.de-website/server/node_modules/apollo-server-express/node_modules/apollo-server-core/src/runQuery.ts:143:30) at /Users/tjarkkuehl/Desktop/semtexxx.de-website/server/node_modules/apollo-server-express/node_modules/apollo-server-core/src/runQuery.ts:69:39 at <anonymous>
Server Setup
Index
Schema
Resolver
Client Setup
Index
Profile.vue
The text was updated successfully, but these errors were encountered: