Tag: sharp
-
How to Process Uploaded Image with Graphql Apollo with SharpJS in NodeJS?
4 I have a graphql mutation that gets an image from the frontend, and that then is processed and optimized on my server. But I can’t figure out how to pass my image to sharp. Here is my code: const Mutation = { createImage: async (_, { data }) => { const { file }…