This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-10
Channels
- # announcements (16)
- # aws (1)
- # babashka (2)
- # beginners (33)
- # biff (2)
- # clj-kondo (13)
- # cljs-dev (1)
- # cljsrn (3)
- # clojars (6)
- # clojure (198)
- # clojure-australia (3)
- # clojure-europe (41)
- # clojure-france (3)
- # clojure-nl (2)
- # clojure-spec (7)
- # clojure-uk (12)
- # clojurescript (57)
- # clojureverse-ops (1)
- # code-reviews (3)
- # community-development (2)
- # conjure (10)
- # data-science (1)
- # datomic (15)
- # depstar (2)
- # docker (2)
- # etaoin (1)
- # events (1)
- # exercism (5)
- # fulcro (23)
- # helix (23)
- # introduce-yourself (4)
- # jobs (6)
- # kaocha (1)
- # lsp (11)
- # meander (107)
- # off-topic (8)
- # pathom (3)
- # polylith (33)
- # re-frame (23)
- # reagent (7)
- # reitit (28)
- # remote-jobs (3)
- # sci (1)
- # shadow-cljs (2)
- # specter (5)
- # sql (38)
- # tools-deps (72)
- # web-security (9)
- # xtdb (32)
I stumbled upon a mystery in Pathom 2, using Fulcro Inspect EQL tab. I have a mutation that throws an exception and thus this works as expected:
[{(com.example.mutations/create-random-thing {:tmpid 123}) [:com.wsscode.pathom.core/errors]}]
; =>
com.example.mutations/create-random-thing
{:com.wsscode.pathom.core/reader-error "fake error - {}"}}
but if I add :p/errors
to the transaction (which is actually likely unnecessary / useless, as well as the ::p/errors inside the mutation join), suddenly the output changes in a weird way:
[:com.wsscode.pathom.core/errors
{(com.example.mutations/create-random-thing {:tmpid 123}) [:com.wsscode.pathom.core/errors]}]
; =>
{com.example.mutations/create-random-thing
{:com.wsscode.pathom.core/reader-error
"Mutation not found - {:mutation com.example.mutations/create-random-thing}"},
:com.wsscode.pathom.core/errors :com.wsscode.pathom.core/not-found}
Why do I suddenly get "Mutation not found" error?! (FYI this is related to https://github.com/fulcrologic/fulcro/pull/486) 🙏this is a bug in Pathom Viz in terms of handling mutations, its old but its been a while since someone stumble on it, I made an issue to track it: https://github.com/wilkerlucio/pathom-viz/issues/69
👍 2