pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
souenzzo 2020-06-26T19:43:08.257200Z

There is a #pathom function for this?

(defn get-from-context
  [{:keys [parser] :as env} context ident]
  (let [[eid & others] context]
    (-> (parser env `[{(~eid {:pathom/context ~(into {} others)})
                       ~[ident]}])
        (get-in [eid ident]))))