Fork me on GitHub
Jakub Holý (HolyJak)10:09:24

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.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.example.mutations/create-random-thing {:tmpid 123}) [:com.wsscode.pathom.core/errors]}]
; =>
  "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 🙏


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:

👍 2