This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-23
Channels
- # babashka (1)
- # beginners (26)
- # clj-kondo (15)
- # cljdoc (2)
- # clojure (14)
- # clojure-europe (13)
- # clojure-norway (6)
- # conjure (2)
- # etaoin (4)
- # events (2)
- # expound (2)
- # fulcro (1)
- # hyperfiddle (6)
- # london-clojurians (2)
- # malli (3)
- # meander (10)
- # minecraft (3)
- # nbb (34)
- # off-topic (10)
- # pathom (13)
- # reagent (7)
- # vim (3)
Hello. In Pathom 2, how can I get a join in a resolver input?
if you are expecting nested inputs, it is only available in pathom3 https://pathom3.wsscode.com/docs/resolvers/#nested-inputs
What is the difference between :com.wsscode.pathom3.error/attribute-missing
and :com.wsscode.pathom3.error/missing-output
? The https://pathom3.wsscode.com/docs/error-handling/#attribute-missing-on-output only include an entry for the first one.
> This happens when the resolver completed with success, but the output didn't include the attribute.
About missing-output:
(let [a (pco/resolver `a
{::pco/output [:a]}
(fn [_ _]
;; :com.wsscode.pathom3.error/missing-output
;; when a resolver say that it will return :a, but dont
{}))
env (pci/register [a])]
(try
(p.eql/process env [:a])
(catch Throwable ex
(:com.wsscode.pathom3.error/cause (:com.wsscode.pathom3.error/error-data (ex-data ex))))))
@U2J4FRT2T that sounds the same as "output didn't include the attribute", no? What bit of nuance am I missing?
I'm trying to create a :com.wsscode.pathom3.error/attribute-missing
error in my repl
they work at different times, attribute missing is more broad, means attribute was expected by query, but wasn't there, this check runs after the graph is done for given entity, makes sense?
@U066U8JQJ so attribute-missing
can happen during the graph traversal, whereas missing-output
only happens at the end?
humm, I'm doing a double check reading the code, I'm starting to think one of them might not happen, because they are in the two different places, aparently for the same reason
I can't go deep check now, but I'll open an issue to clear this up