This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-21
Channels
- # announcements (26)
- # aws (1)
- # babashka (40)
- # beginners (36)
- # calva (9)
- # cider (38)
- # clara (5)
- # clj-commons (4)
- # clj-kondo (29)
- # cljs-dev (8)
- # cljsrn (2)
- # clojars (12)
- # clojure (151)
- # clojure-europe (16)
- # clojure-gamedev (1)
- # clojure-nl (2)
- # clojure-uk (7)
- # clojurescript (2)
- # copenhagen-clojurians (2)
- # datalevin (18)
- # fulcro (7)
- # graphql (7)
- # gratitude (9)
- # helix (2)
- # honeysql (3)
- # introduce-yourself (1)
- # jobs (1)
- # lsp (13)
- # malli (10)
- # nextjournal (2)
- # off-topic (13)
- # pathom (1)
- # pedestal (2)
- # portal (4)
- # remote-jobs (1)
- # ring-swagger (1)
- # shadow-cljs (21)
- # specter (1)
- # testing (2)
- # tools-build (6)
- # vim (2)
- # xtdb (5)
Coming back to the tracing question above. I'm using the tracing support in pedestal.log combined with AWS X-ray. It seems like it's a very common pattern to store the active "span" (or Segment/Subsegment in XRay terms) in a Thread local. It seems though that Lacinia manages its own thread pool using agents, so the resolvers are not executed in the HTTP thread. I'm using the plain query-executor-handler (not the async one) so I'm wondering if that's expected behaviour.
File uploads with lacinia - what have people done for this / is this a supported thing
Nope, unless you base64 at the client. Best to have a separate endpoint for file uploads.
For some excel uploads I opted to parse client-side and call a graphql endpoint directly - avoiding potential vulnerabilities in parsing Excel files.
We have implemented the https://github.com/jaydenseric/graphql-multipart-request-spec for lacinia to support uploads with graphql; unfortunately it's a private lib right now but willing to open source it if there's interest
This worked great with https://github.com/jaydenseric/apollo-upload-client