Replies: 1 comment
-
|
We can do (defn params-for-attr
[{::pc/keys [resolver-data]
::p/keys [parent-query]}]
(let [output-key? (->> resolver-data
::pc/output
eql/query->ast
:children
(map :dispatch-key)
set)]
(into {}
(keep (fn [{:keys [dispatch-key params]}]
(when (and params (output-key? dispatch-key))
[dispatch-key params])))
(:children (eql/query->ast parent-query))))) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How pathom handle parameters when a resolver has multiple output's?
p/params-for-attr, allowing us to access all parameters from all keys declared in output?The current behavior is: it will only receive parameters from the key that 'triggered' the call on this resolver.
Beta Was this translation helpful? Give feedback.
All reactions