pathom 2024-01-08

I am having a hard time with an EQL query with an ident and params:

(pathom '[{([:yardwerkz.yard/postal-code "85286"] {:yardwerkz.job/service :yardwerkz.service/mowing-lawn}) {:yardwerkz.yard/price-statistics [:yardwerkz.price-statistics/average]}}])
the (pco/params env) in my resolver returns {}. I tried the example and it works. I don’t know what I am doing wrong. Thanks for your assistance!

Is your query syntax correct? What does the first map in the vector mean? I haven't used Pathom for a long time...

The first map in the vector are the parameters to the resolver.

There is only one map in the vector in the example above. [{ (...) {... }}]. Is this correct? Then I don't understand what your pathom function expects..

My pathom function takes a quoted vector of EQL

Can you paste the code of the pathom function?

Sure.

(def pathom (p.eql/boundary-interface @env))

OK, I would need the whole code example - and also which pathom version you are using to understand

According to this example the resulting pathom function is multi-arity: (pathom {:app/current-user-id 1} [:user/login]) https://pathom3.wsscode.com/docs/eql/#using-eql-interface

Also, is env an atom? The pathom definition will only give you the env at definition time.

No, env is a delay.

👍 1