pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
stuartrexking 2021-06-16T01:41:36.094500Z

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

stuartrexking 2021-06-16T01:42:17.095200Z

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

stuartrexking 2021-06-16T01:42:28.095500Z

Is it possible to do such a thing?

wilkerlucio 2021-06-16T02:20:10.096600Z

@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

1👍