Step 3 in the instructions, "Add UploadedFile resolver" is too hard to follow.
Pasting the example code into a typical Apollo resolvers.js file wont work because Kind is undefined. Where does that come from, how do you import it? And what is this ast parameter?
This looks pretty boilerplate, why not export the scalar resolver for easy setup?
Something like:
import {UploadedFileResolver} from 'graphql-server-express-upload'
export default {
UploadedFile: UploadedFileResolver,
Query: { ... },
Mutation: { ... }
}
In the meantime, I can't work out how to get the resolver to work so any clarification would be super helpful.
Step 3 in the instructions, "Add UploadedFile resolver" is too hard to follow.
Pasting the example code into a typical Apollo resolvers.js file wont work because
Kindis undefined. Where does that come from, how do you import it? And what is thisastparameter?This looks pretty boilerplate, why not export the scalar resolver for easy setup?
Something like:
In the meantime, I can't work out how to get the resolver to work so any clarification would be super helpful.