This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-08
Channels
- # announcements (14)
- # babashka (12)
- # beginners (140)
- # calva (2)
- # cider (22)
- # clj-commons (14)
- # clj-kondo (49)
- # cljdoc (34)
- # clojure (92)
- # clojure-europe (41)
- # clojure-france (2)
- # clojure-new-zealand (2)
- # clojure-nl (2)
- # clojure-norway (60)
- # clojure-uk (17)
- # clojured (2)
- # clojurescript (7)
- # community-development (3)
- # conjure (2)
- # cryogen (13)
- # cursive (4)
- # data-oriented-programming (2)
- # datahike (5)
- # datomic (12)
- # defnpodcast (10)
- # events (2)
- # fulcro (20)
- # gratitude (3)
- # honeysql (4)
- # introduce-yourself (3)
- # jobs (10)
- # lsp (58)
- # malli (12)
- # missionary (19)
- # off-topic (8)
- # pathom (18)
- # podcasts-discuss (1)
- # polylith (41)
- # releases (1)
- # remote-jobs (3)
- # shadow-cljs (52)
- # spacemacs (1)
- # sql (37)
- # xtdb (19)
To make the https://blog.wsscode.com/pathom/v2/pathom/2.2.0/connect/exploration.html#_setting_up_the_index_explorer_resolver in Pathom3, is it just: (get env ::pc/indexes) -> (get env ::pci/indexes)
?
in Pathom 3 you just need to use the boundary interface (https://pathom3.wsscode.com/docs/eql/#boundary-interface), and it sets up the index explorer support automatically, or using the pathom connector, which also makes it automatically
if you are trying to support on some HTTP API, also make sure you setup the encoding to use transit, and use the transit readers/writers from pathom, so it can encode/decode resolvers and mutations
this tutorial covers the full http setup: https://pathom3.wsscode.com/docs/tutorials/serverless-pathom-gcf
Hmm, I'm just trying to upgrade my Fulcro to use Pathom3. Everything seems to be working, except EQL autocomplete and the index explorer. I get this error:
I 2022-02-08T17:41:46.254Z _rad.pathom-common:- 28 - Request: [{[:com.wsscode.pathom.viz.index-explorer/id [:fulcro.inspect.core/app-uuid #uuid "85fd9b5b-0a33-4c9e-8ded-2a0dd2f4d4a6" :remote]] [:com.wsscode.pathom.viz.index-explorer/id :com.wsscode.pathom.viz.index-explorer/index]}]
E 2022-02-08T17:41:46.256Z _rad.pathom3:- 31 - EQL query for :com.wsscode.pathom.viz.index-explorer/index cannot be resolved. Is it spelled correctly? Pathom error: {:com.wsscode.pathom3.error/cause :com.wsscode.pathom3.error/attribute-unreachable}
I 2022-02-08T17:41:46.257Z _rad.pathom-common:- 28 - Response: {[:com.wsscode.pathom.viz.index-explorer/id [:fulcro.inspect.core/app-uuid #uuid "85fd9b5b-0a33-4c9e-8ded-2a0dd2f4d4a6" :remote]] {:com.wsscode.pathom.viz.index-explorer/id [:fulcro.inspect.core/app-uuid #uuid "85fd9b5b-0a33-4c9e-8ded-2a0dd2f4d4a6" :remote]}}
My code is based on the https://github.com/fulcrologic/fulcro-rad-demo/blob/1d8b7b1bba31aca925335f35f8b1486c6a25d4a0/src/xtdb/com/example/components/parser.clj#L29 and that call to pathom3/new-processor
does use the boundary interface: https://github.com/fulcrologic/fulcro-rad/blob/fulcro-rad-1.1.6/src/main/com/fulcrologic/rad/pathom3.clj#L112are you trying on Pathom viz or Fulcro Inspect?
because Fulcro Inspect doesn't support Pathom 3 at this time
@U066U8JQJ I'm not sure how to get Viz working with the rad demo code. I still need to use the connector, right? If so, where do I use it in the parser setup? Is this something I need to read the plugins page to understand? Haven't got to that one yet..
the config should be very similar to the JVM one, Pathom 3 doesn't have the concept of a parser, so its about configuring the env when defining it
the connector will do all the nescessary extensions (like exposing the indexes), so it should work strait from there, maybe its easy for you to try setting up it first without fulcro, and them placing it there (after all, its a differnet wrapping the call to the eql processor)
I'm assuming in this case you are making a CLJS Pathom configuration, right?
I've got it working in the GraphQL GitHub demo. That was my first step, and now I'm trying to use it with my Fulcro project. This is for the backend parser to connect to my database, as shown here: https://github.com/fulcrologic/fulcro-rad-demo/blob/1d8b7b1bba31aca925335f35f8b1486c6a25d4a0/src/xtdb/com/example/components/parser.clj#L22-L29
It's that call to RAD's pathom3/new-processor
that registers the indexes, which is where I set up the connector in the GraphQL repo, but don't know how to inject it into the logic here.
I dont have a lot of contexto on the RAD implementation, at some place you should be able to change env things
Thanks @U066U8JQJ but it's okay. I don't want to distract you from your work too much if the answer isn't something obvious. If I figure it out I will commit some docs somewhere to explain it.