This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-07
Channels
- # bangalore-clj (1)
- # beginners (255)
- # boot (29)
- # cider (16)
- # cljs-dev (13)
- # cljsrn (6)
- # clojure (200)
- # clojure-berlin (1)
- # clojure-dev (13)
- # clojure-dusseldorf (6)
- # clojure-greece (1)
- # clojure-india (1)
- # clojure-italy (1)
- # clojure-russia (33)
- # clojure-spec (28)
- # clojure-uk (27)
- # clojurescript (47)
- # cursive (32)
- # data-science (3)
- # datascript (1)
- # datomic (40)
- # emacs (39)
- # events (4)
- # fulcro (55)
- # graphql (16)
- # immutant (2)
- # luminus (2)
- # lumo (5)
- # off-topic (142)
- # onyx (50)
- # portkey (1)
- # re-frame (45)
- # reagent (80)
- # remote-jobs (2)
- # ring-swagger (3)
- # rum (9)
- # schema (3)
- # shadow-cljs (184)
- # spacemacs (3)
- # test-check (4)
- # unrepl (2)
- # yada (5)
if i have a deeply nested data schema, such as this:
[{:type :continent
:countries [{:type :country
:name "usa"
:states [{:type :city
:name "seattle"
:people [{:name "fred"}
...]}
...]}
...]}
{:type :continent
:name "asia"
:countries [{:type :country
:name "japan"
:states [{:type :city
:people [{:name "fred"}
{:name "frank"}
...]}
...]}
...]}]
:name
s are unique per continent and per type.
If I have the :db/id
of a continent and want to get the descendent entity with :name
"fred" below it, what's the best way to go about doing that in as general a way as possible? Is it possible to do this without "hardcoding" the tree structure
I will also be needing to query for names of countries, cities, etc for a given continent. Is there a way to "nest" queries, where i can query for the entities of a certain continent, and then query those results?