-
Notifications
You must be signed in to change notification settings - Fork 14
File Handling like Active Storage in Rails #43
Comments
It should be simple thing to do using ejected template and apollo file uploads: https://blog.apollographql.com/file-uploads-with-apollo-server-2-0-5db2f3f60675 However it will be nice to check it nexus will handle this using FileUpload scalar etc. and have separate template for this case. |
I'm not sure whether we need any kind of integration to support upload here. https://github.com/jaydenseric/graphql-upload seems to do the job on its own, and should not require you to eject at any time. All you should need is to export the Wouldn't that be enough? |
@Weakky It would be nice if this was build into the framework somehow like out of the box solution. |
@Weakky I know you're working on the docs right now could you at least add section on how to do |
I was able to get it working by doing the following:
import { scalarType } from "yoga";
import { GraphQLUpload } from 'graphql-upload'
export const Upload = scalarType(GraphQLUpload) |
@rohit-ravikoti You don't event need to use import { GraphQLUpload } from 'graphql-upload'
export const Upload = GraphQLUpload Should be sufficient @guledali I'll add a section for that! |
Describe
Integrate an easy solution for uploading files that is build into this framework!
The text was updated successfully, but these errors were encountered: