pathom

:pathom: https://github.com/wilkerlucio/pathom/ & https://pathom3.wsscode.com & https://roamresearch.com/#/app/wsscode
Chicão 2021-02-15T17:38:58.263400Z

Hi, guys.. may someone knows how I can debug this, I've call (:y smart-map) but when I saw the errors I got this

:node-error #error{:cause "Insufficient data",
:data {:required {:test/constant-headers {},
:test/access-token {},                                                                                                                                 :test/body {}},
:available #:test{:constant-headers {:User-Agent {},
:Host {}}}},
:via [{:type clojure.lang.ExceptionInfo,
:message "Insufficient data",
:data {:required {:test/constant-headers {},
:test/access-token {},                                                                                                                       :test/body {}},                                                                                                                 :available #:test{:constant-headers {:User-Agent {},                                                                                                                                                                :Host {}}}},
I've print in test/access-toke and test/body inside their resolvers and i saw the data there, and in the env I saw the data, any help is welcome.

nivekuil 2021-02-15T23:18:43.263500Z

is it crazy to want to replace every backend function with pathom resolvers? like, instead of a http-get function you have a resolver that takes a :url and returns a :http-response

nivekuil 2021-02-15T23:19:45.263600Z

I guess that example is probably too general to be useful. it would have to be some kind of domain-specific http-response