This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-16
Channels
- # admin-announcements (1)
- # announcements (1)
- # babashka (130)
- # beginners (120)
- # calva (11)
- # cider (5)
- # clj-kondo (9)
- # cljsrn (17)
- # clojure (63)
- # clojure-australia (1)
- # clojure-canada (21)
- # clojure-europe (37)
- # clojure-israel (4)
- # clojure-uk (6)
- # clojurescript (170)
- # conjure (5)
- # core-async (23)
- # cursive (16)
- # datomic (4)
- # defnpodcast (1)
- # emacs (5)
- # fulcro (1)
- # gis (2)
- # graalvm (31)
- # graphql (4)
- # helix (6)
- # honeysql (16)
- # jobs-discuss (3)
- # juxt (1)
- # lsp (7)
- # malli (20)
- # meander (12)
- # missionary (6)
- # off-topic (50)
- # pathom (4)
- # re-frame (4)
- # react (1)
- # ring (2)
- # shadow-cljs (63)
- # spacemacs (2)
- # sql (15)
- # testing (6)
- # vim (8)
- # xtdb (7)
Pathom 2.2.0. How do I query for a vector of vectors for a global resolver?
(pc/defresolver connections [{::datomic/keys [conn] :as env} _]
{::pc/output [{::connection/connections [::connection/name ::connection/id]}]}
(let [{:keys [context rel]} (-> env :ast :params)]
{::connection/connections
(cc/path (d/db conn) context rel)}))
The output is a vector of vectors {::connection/connections [[…]]}
Is it possible to do such a thing?
@stuartrexking no support for vectors of vectors, you can instead make a vector of maps, on where each map has an attribute that is another vector
👍 3