This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-16
Channels
- # announcements (19)
- # babashka (13)
- # beginners (7)
- # calva (8)
- # cider (25)
- # clj-kondo (12)
- # cljsrn (7)
- # clojure (60)
- # clojure-australia (5)
- # clojure-europe (59)
- # clojure-france (14)
- # clojure-gamedev (2)
- # clojure-nl (1)
- # clojure-uk (7)
- # clojurescript (43)
- # community-development (8)
- # core-async (2)
- # cursive (15)
- # datomic (75)
- # deps-new (31)
- # depstar (1)
- # fulcro (6)
- # graalvm (53)
- # holy-lambda (1)
- # juxt (3)
- # jvm (13)
- # kaocha (8)
- # lsp (109)
- # malli (14)
- # off-topic (62)
- # pathom (11)
- # pedestal (12)
- # polylith (12)
- # releases (5)
- # sci (5)
- # shadow-cljs (15)
- # sql (16)
- # tools-deps (27)
- # vim (1)
- # xtdb (14)
In Pathom viz why do some of the indexs show up as different colors in i the "Index Explorer" tab?
purple: attributes blue: resolvers orange: mutations
is these colors you talking about?
yes they are ty ty
Whats an example of something that would go in Query > "Entity Data" ?
Entity data allows you to query for resolvers in pathom-viz and provide data to the resolver (or upstream resolvers). For example, let’s say you only have the following resolver:
(pc/defresolver full-name
[{:user/keys [first-name last-name]}]
{:user/full-name (str first-name " " last-name)})
If you were to query for [:user/full-name]
as a top-level key, you wouldn’t get it back b/c :user/first-name
and :user/last-name
are needed as inputs (and pathom can’t get to either of those attributes to fulfill the inputs of :user/full-name
). You can inject those keys via entity data :
{:user/first-name "Jane"
:user/last-name "Doe"}
and then when you query for [:user/full-name]
you’ll get {:user/full-name "Jane Doe"}
.yes, entity data is top level provided data
note the auto-complete (in the query part) is sensitive to it, if you change the data it will affect the auto-complete options (considering the provided data)
Thanks!
I'm using Pathom + Walkable in a new SPA (not Fulcro). I'm wondering about client said query caching and have been google around the react world at stuff like https://react-query.tanstack.com/. Does anyone have any suggestions for resources or know of a cljs/pathom existing solution?