This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-06-07
Channels
- # announcements (1)
- # babashka (79)
- # beginners (177)
- # cider (27)
- # cljdoc (24)
- # cljs-dev (4)
- # clojure (43)
- # clojure-norway (7)
- # clojure-uk (3)
- # clojurescript (52)
- # conjure (12)
- # cryogen (1)
- # cursive (5)
- # data-science (7)
- # datahike (1)
- # datomic (1)
- # dirac (2)
- # helix (14)
- # jobs-discuss (130)
- # juxt (4)
- # liberator (4)
- # malli (2)
- # mxnet (2)
- # news-and-articles (1)
- # nrepl (19)
- # off-topic (27)
- # pathom (3)
- # practicalli (1)
- # re-frame (4)
- # reagent (2)
- # ring (7)
- # shadow-cljs (21)
- # spacemacs (11)
- # vim (38)
- # xml (2)
- # xtdb (17)
I found the bug. I was querying entities on 3 levels (simplified example)
[:a/id {:a/bs [:b/id {:b/cs [:c/id]}]}]
for :a
resolver I declared :a/bs
as output, pulled the data from datomic, and renamed the :db/id
keys but in addition for whatever reason I pulled the rest of the graph but didn’t rename the keys. Pulling and returning only what I was supposed to return in the :a
resolver fixed the issue.
It’s still unclear to me why it sometimes worked, but doesn’t really matter.
Hi. Is there support in pathom for federation of resolvers between providers please? I’d like to federate or hop between resolvers running on different services - is such a thing supported or does one simply create a facade and forward on each resolution request?
My second question is one of style. I’d like to build a set of resolvers that supports different ontologies, thus abstracting implementation details and providing graph edges and graph exploration using a standardised vocabulary - this would mean clients can walk - for example, organisations across different countries/regions without concern about underlying schema differences. For example, I’m building a graph of health and care organisations in the UK and would like to represent relationships via an ontology namespace such as https://www.w3.org/ns/prov - so that a relationship ends up being https://www.w3.org/ns/prov#wasDerivedFrom - I’m planning to use reverse URL notation in the clojure namespace to represent a particular attribute but is there a better way? For instance, this means clients can fetch the name of a given organization using :org.w3.http://www.2004.02.skos.core/prefLabel I quite like the first-class nature of naming here, but can’t use traditional URL/value tuples http://www.w3.org/2004/02/skos/core#prefLabel because that wouldn’t be a valid clojure namespace.