This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-28
Channels
- # aleph (1)
- # announcements (16)
- # bangalore-clj (1)
- # beginners (78)
- # cider (109)
- # clara (3)
- # cljdoc (6)
- # cljsjs (3)
- # clojure (209)
- # clojure-dev (11)
- # clojure-europe (1)
- # clojure-france (9)
- # clojure-italy (13)
- # clojure-nl (3)
- # clojure-spain (2)
- # clojure-spec (19)
- # clojure-uk (50)
- # clojurescript (41)
- # clojutre (2)
- # core-async (45)
- # cursive (2)
- # datomic (14)
- # emacs (6)
- # figwheel-main (1)
- # fulcro (101)
- # graalvm (1)
- # graphql (3)
- # jobs-discuss (3)
- # kaocha (12)
- # leiningen (8)
- # music (4)
- # off-topic (47)
- # parinfer (8)
- # pathom (17)
- # pedestal (53)
- # re-frame (47)
- # reagent (22)
- # reitit (4)
- # shadow-cljs (49)
- # tools-deps (87)
Is there a way to customize when :com.wsscode.pathom.core/not-found
shows up? For example, say I have an attribute :user/games
which is cardinality many of maps. Each :game
inside the list has a :game/type
. My application want to pull all the :user/games
, only pulling particular :game
attributes depending on the :game/type
, similar to what clojure.spec/multi-spec
does. Is there a way to do this?
about not-found
, what people usually do is set a plugin to remove those from the output, they are internally useful to mark that something can't be realised and I decide to let if flow to the user, because its more information then nil
or not having the key, but you can use the plugin: p/elide-special-outputs-plugin
, this will remove not-found and reader-errors
about the type
thing, EQL handles that with Union Queries: https://edn-query-language.org/eql/1.0.0/specification.html#_unions
some pathom docs on unions: https://wilkerlucio.github.io/pathom/v2/pathom/2.2.0/core/entities.html#_union_queries
ps: this is a bit outdated, was before connect, with connect the "branch" is usually decided by checking the presence of a key in the entity
Oh cool! It sounds like I just need to structure the query correctly and Connect will figure it all out!
The p/elide-not-found
doc says:
> Convert all ::p/not-found values of maps to nil
It will actually remove ::p/not-found
values, not set them to nil
.
correct
@wilkerlucio will there be a talk about pathom in clojure south? Are you going to be there?
hello, I'll be at the event, but I have no talk in this one
are you coming for the conference?
We weren't brave enought to try talking about developing react native apps with fulcro + pathom hahahhaha
there's a good chance that @U4L16CHT9 will mention @U2J4FRT2T's https://github.com/souenzzo/graph-demo in his talk https://clojure-south.com/datomic-vs-crux-and-why-it-matters/ 🙂
lets all meet up there! 😄
just released Pathom 2.2.24
, this release adds support for ::p/root-query
@thenonameguy