This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-13
Channels
- # announcements (5)
- # babashka (35)
- # beginners (65)
- # braveandtrue (3)
- # calva (20)
- # cider (6)
- # clara (11)
- # cljs-dev (36)
- # cljsrn (64)
- # clojure (65)
- # clojure-europe (6)
- # clojure-germany (13)
- # clojure-italy (14)
- # clojure-nl (22)
- # clojure-spec (16)
- # clojure-sweden (6)
- # clojure-uk (81)
- # clojurescript (71)
- # conjure (120)
- # cursive (3)
- # datomic (10)
- # events (4)
- # figwheel (4)
- # figwheel-main (5)
- # fulcro (36)
- # ghostwheel (1)
- # graalvm (8)
- # helix (9)
- # jobs (4)
- # jobs-discuss (12)
- # kaocha (33)
- # leiningen (5)
- # luminus (1)
- # off-topic (24)
- # pathom (7)
- # rdf (4)
- # re-frame (3)
- # reagent (15)
- # reitit (11)
- # remote-jobs (1)
- # shadow-cljs (97)
- # slack-help (3)
- # spacemacs (23)
- # vim (15)
- # xtdb (35)
Does something special need to be done to reload a resolver after I edit it while working in the REPL? I made a change to the return value of a resolver and then re-evaluated the buffer where my resolver and parser are defined. But running a query afterwards doesn't pick up the change.
if you’re calling the pathom parser directly then just redefining it should work fine, defresolver
expands to def
but for more complex apps you might want to go with some state management library (mount, integrant, etc) + with tools.namespace for code reload, because often there’re things which have lifecycle semantics (like a server) and if your pathom parser is accessed via the server, you need to reload the server as well
Yes, you have to reload your parser, your parser caches your resolver definitions, so you need to update it, just make sure you’re doing that =)… You might be calling an older version of the parser, I’ve done that before…
What is the best way to add a GraphQL api support to an existing Pathom setup? As in, supports GraphQL requests, not just consuming an existing GraphQL data source.
I have a legacy Javascript/React ui I need to support that I want to introduce a better data management and request layer to. To keep things more simple for the UI devs, I was hoping to use some sort of GraphQL client library like https://www.apollographql.com/docs/react/
Is https://github.com/denisidoro/graffiti Basically the only option? I was hoping not to add in another layer of library that might not be updated. Plus, wouldn't it include re-writing whatever pathom resolvers already exist?
graffiti is the only option I know for that currently