-
Copying the question from Slack for more visibility. Is it possible to have |
Beta Was this translation helpful? Give feedback.
Answered by
dehli
Dec 13, 2020
Replies: 1 comment
-
Copying @wilkerlucio's answer from Slack for more visibility:
(def mutation-parser
(p/parser
{::p/env {::p/reader [p/map-reader
pc/reader2
pc/open-ident-reader
p/env-placeholder-reader]
::p/placeholder-prefixes #{">"}
::p/process-error (fn [env err]
(if (= :call (-> env :ast :type))
(p/add-error (-> env
(update ::p/path p.misc/vconj (-> env :ast :key))
(dissoc ::p/process-error)) err))
(p/error-message err))}
::p/mutate pc/mutate
::p/plugins [(pc/connect-plugin {::pc/register mutation-error})
p/error-handler-plugin
p/request-cache-plugin
p/trace-plugin]})) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dehli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copying @wilkerlucio's answer from Slack for more visibility: