pathom

Joel 2025-07-02T15:46:10.033399Z

I noticed I don’t need the [:my-id] part in the following which surprised me. Pathom seems to be able to find a path using :my-id without it being in the spec. Sort of curious how that is working.

::pco/output [:my-list [:my-id]]

wilkerlucio 2025-07-02T15:47:33.429579Z

that output is incorrect, I think you intended to write: [{:my-list [:my-id]}]. and altough Pathom will work in some situations for that, if you need to make a resolver with a nested ::pco/input it will fail if you don't provide the nested context from other resolvers

Joel 2025-07-02T15:48:46.098829Z

OK. I thought it smelled funny but still seemed functional. Thanks!

wilkerlucio 2025-07-02T15:54:21.468679Z

no worries, its a common mistake 🙂