This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-03
Channels
- # aleph (5)
- # announcements (4)
- # babashka (2)
- # beginners (52)
- # calva (13)
- # cider (60)
- # clj-kondo (91)
- # cljsrn (6)
- # clojure (93)
- # clojure-brasil (2)
- # clojure-dev (37)
- # clojure-europe (5)
- # clojure-italy (7)
- # clojure-nl (8)
- # clojure-norway (1)
- # clojure-sg (1)
- # clojure-spec (115)
- # clojure-uk (31)
- # clojurescript (32)
- # cursive (35)
- # data-science (4)
- # datascript (3)
- # datomic (29)
- # emacs (8)
- # events (1)
- # figwheel (1)
- # funcool (2)
- # graalvm (2)
- # joker (12)
- # kaocha (4)
- # lein-figwheel (1)
- # leiningen (34)
- # malli (7)
- # off-topic (4)
- # overtone (1)
- # parinfer (2)
- # pathom (5)
- # quil (1)
- # re-frame (12)
- # reagent (2)
- # shadow-cljs (7)
- # spacemacs (6)
- # sql (8)
- # tools-deps (63)
- # vim (24)
Hey folks, I have a pathom parser that uses a shopify index, and adds additional resolvers. I want to reference the parser inside the resolvers so I can make the request to shopify. Is this possible? I'm pulling the parser out of the env like below, but I'm getting an unhelpful NullPointerException
deep in the parser
(pc/defresolver resolver [env _]
{::pc/output [{::foo/all [::foo/id]}]}
(go {::foo/all (<! ((:parser env) {} [{(:shopify/..) [...]}]))}))
The only way I can get it to work is by constructing a separate parser for the shopify index and passing that into the top level parser ::p/env
((:parser env) {}
should be ((:parser env) env
[{(:shopify/... )}]
part also unquoted. so it should be resulting in a [{nil ...}]
query
Thanks!! That did the trick, at least for queries by ident. For some reason global queries (quoted) [{(:shopify/customers {}) [...]}]
are returning {}
every time, even when the exact same query works from fulcro inspect query. It might be something unrelated though.
Hello guys, The PartiQL query language from AWS seems like a good target for pathom adapters - would love to hear your thoughts on this https://partiql.org/