Using Pathom 3, trying to pass params to a resolver I'm not able to find the params using the built in operations params func.
(defresolver param-test
[env _input]
{::pco/input [:test/value]
::pco/output [:no-params :params]}
{:no-params (pco/params env)
:params (get-in
env
[:com.wsscode.pathom3.connect.planner/graph
:com.wsscode.pathom3.connect.planner/source-ast
:params])})
query i am using:
[{'([:test/value "1"]
{:foo "bar"})
[:no-params :params]}]
output:
{:no-params {}, :params {:foo "bar"}}
Is this expected? Is there something I need to change to get them to appear in the keypath that params func expects?this is expected, the params must go in some of the attributes that are part of the output from the resolver