Can pathom do something like:
(pco/defresolver override-foo [_ item]
{::pco/input [(pco/? :entity/foo)]
::pco/output [:entity/foo]}
(p/future
(let [foo (get item :entity/foo)]
{:entity/foo (when (some? foo) "override-foo")})))Let me see if I understand your intent. Do you want to change the value of :entity/foo that is coming from another resolver or from initial data?
I don't think pathom will be able to use that resolver meaningfully because if it already has the foo attribute, it won't need to call the override resolver. If it can't otherwise resolve the foo attribute, (when (some? nil) "override-foo") will yield nil.
Have you looked at plugins like https://pathom3.wsscode.com/docs/plugins#pcrwrap-entity-ready! ?