pathom 2024-01-30

When getting an attribute-unreachable error, is there a way to find out why it was unreachable? For instance, I might have a resolver that needs :a and :b to resolve :a+b , I have :b but not :a, is there a way I could ask Pathom (or use the indexes directly) to tell me I need :a specifically?

hello Tom, sorry the delay, I remember I do provide something for that in the run stats (from the meta) but I don't remember exactly, I can look for you but I need to find some time to stop and do some experimenting here to find it out

Inspecting the metadata on the params passed to :a+b , specifically :com.wsscode.pathom3.connect.planner/available-data has been handy so far

but I needed to make all of the inputs optional for it to get that far

All good! I'll keep exploring the metadata

Also the documentation for :com.wsscode.pathom3.error/attribute-unreachable appears to be missing/broken on the website: https://pathom3.wsscode.com/docs/error-handling/#attribute-unreachable

thanks, I will double check it

❤️ 1