-
Notifications
You must be signed in to change notification settings - Fork 5
Export UploadedFile scalar resolver #9
Copy link
Copy link
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels