graphql

alidlorenzo 2019-12-30T16:30:52.020600Z

any advice on handling file uploads with lacinia? besides this issue on multi-part requests (https://github.com/walmartlabs/lacinia/issues/187) couldn't find any info on it online

2020-01-03T09:13:10.023Z

I'm using this spec on an Alumbra server with this middleware https://github.com/r0man/ring-graphql-multipart and ring.middleware.multipart-params It may work for Lacina as well.

👍 1
2020-01-03T15:18:42.024300Z

Yeah I found your stuff, I have an implementation for Lacinia laying around that I want to release in a few days ^^

2020-01-03T15:18:53.024800Z

Somewhat similar, somewhat different

2019-12-30T18:10:30.021900Z

I think general advice is to use a mutation to get a file upload id, then upload the file to a normal HTTP handler using the id

2019-12-30T21:21:19.022Z

At some point I stumbled upon this spec: https://github.com/jaydenseric/graphql-multipart-request-spec

2019-12-30T21:23:19.022300Z

Thats probably also where that issue came from

2019-12-30T21:25:26.022500Z

oh that is also in that issue, reading is hard 😕

😅 1