GraphQL File Handling with AWS S3, Prisma, & graphql-yoga!


#1

Hey everybody. If anyone is interested in a GraphQL example that lets you delegate file handling to the server and simply send files through mutations on client-side, check out my tutorial here: https://manticarodrigo.com/file-handling-s3-prisma-graphql-yoga/. The repository for the finished project is here: https://github.com/manticarodrigo/prisma-s3.

Please let me know what you think. Also, let me know of any improvements that can be made.

Cheers!


#2

Cool stuff! Personally, I’m a fan of delegating STS tokens during auth to clients, and having them upload directly to s3, but this was a neat counter-example!


#3

Glad you enjoyed it @Aubron. And yes that approach is perfectly understandable from a client experience perspective. This approach simply helps abstract that bit for frontend developers.