I have 2 resolvers that are not acting as I think they should. I can provide a :prompt/id and get pathom 2 to traverse the graph, but if I give a :prompt/name instead of id, it will not traverse the graph. I'm not sure what I am doing wrong. Here are the resolvers:
(defresolver all-prompts-resolver [env params]
{::pc/output [{:prompt/all-prompts [:prompt/id]}]}
{:prompt/all-prompts (get-all-prompts env params)})
(defresolver all-prompts-by-name-resolver [env params]
{::pc/input #{:prompt/name}}
{::pc/output [{:prompt/by-name [:prompt/id]}]}
{:prompt/by-name (get-all-prompts-by-name env params)})
Full code here: https://gitlab.com/michaelwhitford/gailish/-/blob/main/src/main/us/whitford/gailish/model/prompt.cljc?ref_type=headsI upgraded to Pathom 3 and figured out the proper query for the join I needed here. Pathom is a wonder, truly once you wrap your brain around it.