Fork me on GitHub
#pathom
<
2021-01-02
>
markaddleman19:01:13

In pathom3, is it possible to have two resolvers with different inputs that yield the same output keys? It appears that the first resolver in the register vector is the one that wins

wilkerlucio20:01:24

it is possible, but there is not prioritization algorithm yet, so it tries them in order, if the first fails it tries the next one

markaddleman20:01:21

first one failing means it returns nil?

souenzzo21:01:44

afik, both exception or nil will be considered "fail".

👍 1
wilkerlucio02:01:23

nil is not a fail, but the absense of the key in the response is

👍 1