This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-29
Channels
- # announcements (8)
- # aws (34)
- # beginners (92)
- # calva (19)
- # capetown (1)
- # cider (10)
- # cljs-dev (7)
- # cljsrn (11)
- # clojars (7)
- # clojure (130)
- # clojure-europe (4)
- # clojure-italy (4)
- # clojure-losangeles (1)
- # clojure-nl (11)
- # clojure-russia (1)
- # clojure-spec (4)
- # clojure-uk (64)
- # clojurescript (51)
- # cursive (9)
- # data-science (6)
- # datomic (29)
- # emacs (3)
- # figwheel-main (14)
- # fulcro (4)
- # graphql (3)
- # jackdaw (2)
- # jobs (4)
- # kaocha (17)
- # leiningen (3)
- # luminus (1)
- # off-topic (46)
- # pedestal (6)
- # portkey (2)
- # re-frame (6)
- # reagent (1)
- # reitit (9)
- # shadow-cljs (9)
- # sql (10)
- # yada (6)
Hi. With Lacinia, is there a way to determine how many levels deep a given query will go. For example, in the following query the max depth is 3.
user (id: 1) { # invokes an explicit resolver (depth 0)
id
location { # does not invoke a resolver
city
country
}
repos { # invokes an explicit resolver (depth 1)
id
name
issues { # invokes an explicit resolver (depth 2)
id
description
reporter { # invokes an explicit resolver (depth 3)
name
}
}
commits { # invokes an explicit resolver (depth 2)
sha
comment
}
}
}
https://lacinia.readthedocs.io/en/latest/resolve/selections.html identifies how to preview selections inside a resolver, which gives an idea about what sub-selections will take place.