This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-25
Channels
- # announcements (4)
- # asami (26)
- # babashka (82)
- # beginners (27)
- # biff (6)
- # boot (1)
- # calva (42)
- # cider (2)
- # clj-commons (1)
- # clj-http-lite (2)
- # clj-kondo (37)
- # cljdoc (1)
- # clojure (46)
- # clojure-europe (34)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-uk (2)
- # clojurescript (54)
- # code-reviews (18)
- # cursive (2)
- # datalevin (32)
- # datomic (7)
- # etaoin (1)
- # fulcro (9)
- # gratitude (3)
- # hyperfiddle (15)
- # introduce-yourself (1)
- # jobs (2)
- # lsp (32)
- # nrepl (1)
- # off-topic (18)
- # pathom (17)
- # pedestal (5)
- # polylith (89)
- # reitit (7)
- # releases (3)
- # remote-jobs (4)
- # shadow-cljs (52)
- # spacemacs (3)
- # squint (14)
- # tools-build (10)
- # tools-deps (18)
- # vim (4)
- # xtdb (34)
I must be missing something. To my eyes, having either ab1 or ab2 would be sufficient, but both c1 and c2 would not be.
man, I think you are right, that connection should be an OR :man-facepalming:
https://blog.wsscode.com/pathom/v2/pathom/2.2.0/connect/exploration.html demo doesn't seem to find the https://blog.wsscode.com/pathom/v2/assets/js/book/main.js anymore
I'm noticing its breaking to compile when I try locally, gonna check on it later
its actually parinfer there 😉
What is the guidance for mutations that need ambient information? I have a system that up to now has only had resolvers. In the stack, the user-id
was added to all inputs. Now that I created the first mutation I need that user-id too so that I know what user to perform the mutation against. What would be the recommended way to access this info? I can think of 1) add to the environment 2) add to the parameters (which would be awkward since the user-id is not known at the call-site) 3)??
something like: (user/update {:user/id 1 :user/name "New Name"})
thank you. One last question. Are db connections inputs or do they belong to the environment?
(or neither)
Typically you have connection information in your config, which you pass along in your environment.
Hi. I'm trying (and failing) to find an example of wrap-mutation-error
. We use wrap-resolver-error
to log and return a map (so we don't get transit marhsalling exceptions) whenever a resolver throws an exception (which shouldn't normally happen but it certainly does during development!), and I want to do the equivalent in mutations. The resolver one uses the supplied mark-node-error
fn that it is given, but I'm unsure what I'm supposed to do with mutations. The plugin does get called because my logging is happening, but I'm still getting an exception telling me that the original exception couldn't be marhsalled because I'm not sure how to replace it with my error map. Any pointers? Thanks!
hello, I did look and this entry point is broken, but easy thing to fix, I'm already doing some work on Pathom now, I can add that to the list
Nice one, thanks for that 👍
Oh I see you've literally already fixed it and made a release - what service! Working as expected for me now, many thanks for that