Fork me on GitHub
#pathom
<
2021-02-15
>
Chicão17:02:58

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.

nivekuil23:02:43

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

nivekuil23:02:45

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