Resolvers with higher specificity should get priority over resolvers with less specificity. Specificity can be determined by the number of input attributes.
pathom3 has pco/? to make an input optional, so in your example last-name should just be an optional input and there should only be one resolver for full-name,
(See Slack Discussion for further reference)
Resolvers with higher specificity should get priority over resolvers with less specificity. Specificity can be determined by the number of input attributes.
Problem Statement
Given following resolvers
and this query
Currently, the output could be:
Since both resolvers could provide
:person/full-name
given the input.Possible Solution
Prioritise resolvers with higher specificity. This would make pathoms behaviour predictable:
(This would be a non-breaking change, except if someone depends on the random behaviour.)