hi there, anyone here has tried to use File Upload...
# orm-help
h
hi there, anyone here has tried to use File Upload with apollo server?
n
Create it in your schema.graphql a
largeImage: String!
And store the url path that cloudinary gives in that the largeImage field
h
This is easy but I want to have full control of my files. I want to write it to my server, set an ID and store it to database, so that all my files can only be accessible via api but not exposed in a file server.
I think this is a minimal production ready approach for handling files. Please correct me if I miss something.
h
Thanks a lot! The last link should be what I am looking for. In fact Apollo Server 2 has built in support for
Upload
scalar, so I think I dont need to handle low-level things like in the second link.