Fork me on GitHub
#pathom
<
2021-06-16
>
stuartrexking01:06:36

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)}))

stuartrexking01:06:17

The output is a vector of vectors {::connection/connections [[…]]}

stuartrexking01:06:28

Is it possible to do such a thing?

wilkerlucio02:06:10

@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