This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-25
Channels
- # aleph (18)
- # announcements (7)
- # asami (18)
- # babashka (15)
- # babashka-sci-dev (79)
- # beginners (61)
- # calva (4)
- # clj-kondo (23)
- # cljfx (16)
- # cljs-dev (6)
- # clojure (63)
- # clojure-bay-area (3)
- # clojure-europe (33)
- # clojure-nl (1)
- # clojure-survey (4)
- # clojure-uk (5)
- # clojurescript (37)
- # conjure (1)
- # cursive (8)
- # datahike (7)
- # datalevin (1)
- # datomic (30)
- # emacs (10)
- # events (2)
- # figwheel (2)
- # fulcro (20)
- # google-cloud (1)
- # lsp (6)
- # luminus (4)
- # malli (5)
- # music (3)
- # nextjournal (1)
- # off-topic (9)
- # other-languages (3)
- # pathom (16)
- # polylith (34)
- # re-frame (14)
- # reagent (19)
- # releases (6)
- # sci (2)
- # shadow-cljs (33)
I need to investigate that, can you open an issue on pathom3-graphql repo to keep it tracked?
Thanks so much, @U066U8JQJ, for maintaining and documenting such a fantastic library. We’re about to go live with a Pathom3 implementation, and we’ve really loved it.
With 2022.02-25-alpha
, it looks like if I have two resolvers outputting the same attribute where one has declared ::pco/priority
and the other does not, the one without ::pco/priority
is not invoked. Is that the intended behavior?
To clarify, the resolver with ::pco/priority
returns nil
so I expected the resolver without ::pco/priority
to be invoked
Actually, I got this backwards: The resolver without ::pco/priority
is always invoked while the resolver with ::pco/priority
is not invoked
hello mark, can you make a repro example please?
I tried to reproduce with this:
(ns com.wsscode.pathom3.demos.repro-priority
(:require [com.wsscode.pathom3.connect.operation :as pco]
[com.wsscode.pathom3.connect.indexes :as pci]
[com.wsscode.pathom3.interface.eql :as p.eql]))
(pco/defresolver a1 []
{:a 1})
(pco/defresolver a2 []
{::pco/priority 1
::pco/output [:a]}
nil)
(def env
(pci/register [a1 a2]))
(comment
(p.eql/process env [:a]))
but in this case I get the desired result, so I wonder what kind of edge case you may have hit
I'll try to reproduce this weekend
I can't reproduce. 😕 If I run into it again, I'll be sure to create a repro case before I forget all the context
for a contexto to help debug: the main change in the algorithm is that the previous path would look at every node in the subpaths to find the highest priority, while this new one will look only at nodes that are responsible directly for the attribute that the OR node is looking for