This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-06
Channels
- # aleph (70)
- # announcements (9)
- # babashka (43)
- # babashka-sci-dev (6)
- # beginners (97)
- # cider (2)
- # clj-commons (3)
- # clj-kondo (41)
- # clojure (88)
- # clojure-europe (44)
- # clojure-nl (2)
- # clojure-spec (22)
- # clojurescript (65)
- # community-development (6)
- # conjure (10)
- # cursive (6)
- # datahike (13)
- # datomic (4)
- # eastwood (11)
- # events (1)
- # fulcro (45)
- # graalvm (1)
- # graphql (3)
- # hyperfiddle (3)
- # integrant (7)
- # jobs (1)
- # lambdaisland (1)
- # lsp (58)
- # nbb (4)
- # nrepl (3)
- # pathom (15)
- # shadow-cljs (27)
- # tools-deps (1)
Is there a way in pathom to batch n+2 attributes? Eg I am exposing a db that has a table for an entity, and multiple tables for "subtypes" of that entity. I have a resolver that outputs {:entity-subtypeA [:subtypeA/id]} with :entity/id and :entity/subtype as inputs. So far so good pathom resolves all the attributes of subtypeA that I query. The problem is that when querying a list of entities, the resolver for subtypes is batched, but the subsequent calls for the attributes are not and one call is made for each entity
in Pathom 3, it should batch also in the next level, as long as both resolvers support batching, it would be a two step batching, the first batch would get the items of the list, and the second a single batch for every sub-children
sub children should be in a different batch depending on their type i'll see how pathom3 does it once I migrated, almost done with the pathom3 fulcro-rad-demo branch
that's fine to be different batches, Pathom 3 does batching in a way that's very differnet from what Pathom 2 did, the Pathom 3 way is much more flexible
nice! can't wait to see it working
currently I'm struggling to get the db connection in the env with fulcro new-processor
, seems like the example in fulcro-rad-demo doesn't work
oh it's because I was trying the query in pathom viz and it does have the full context
I'm trying to figure out how to get pathom viz working, seems like it doesn't get the db in the env when using the new-processor https://github.com/fulcrologic/fulcro-rad-demo/compare/develop...pathom3#diff-d08b0b392ee3f4c4541e3539b449936f8c6835533f211df066764c5cda4e045aR27 I added the line (p.connector/connect-env {::pvc/parser-id `env}) directly here https://github.com/fulcrologic/fulcro-rad/blob/develop/src/main/com/fulcrologic/rad/pathom3.clj#L110
given its a fulcro setup thing I think its better to ask about that on #C68M60S4F
Is the docstring here up to date here? https://github.com/wilkerlucio/pathom-viz-connector/blob/master/src/com/wsscode/pathom/viz/ws_connector/pathom3.cljc#L81
It looks like there's no parser
in pathom3?
that's outdated, sorry about that
I guess I copied over and oversight that
I can fix in a bit