Fork me on GitHub
#pathom
<
2021-09-07
>
henrik08:09:22

I'm getting a weird problem in Pathom 3. On running (pco/params env), it gives me {:com.wsscode.pathom3.connect.operation/optional? true}, which are not my parameters. If I run (get-in env [::pcp/graph ::pcp/source-ast :params]) I can find my actual parameters. Has anyone seen this?

cyppan09:09:54

how do you specify your params? In a placeholder? I don’t know if it’s your problem but if you specify the data in a placeholder (https://pathom3.wsscode.com/docs/placeholders) they will be available as resolver inputs but not as params (https://pathom3.wsscode.com/docs/resolvers#parameters) Regarding the :com.wsscode.pathom3.connect.operation/optional?, it’s a param injected when you use (pco/? on your eql keys:

(pco/? :key)
=> (:key #:com.wsscode.pathom3.connect.operation{:optional? true})

wilkerlucio17:09:58

harder to say without the full example