Fork me on GitHub
#pathom
<
2022-11-30
>
pieterbreed11:11:48

Hi 👋:skin-tone-4: - I'm maintaining some code that's been around from earlier in pathom3 version history. I have lenient mode on and intercept both mutation and resolver errors using the plugins. What's the official line on ::pcr/nodes-with-error and ::pcr/node-error meta-data? • Is this data still populated? (I see the plugin has been removed from docs) • Is there anything I can get by inspecting that meta-data that I can't get from the error intercepting plugins or by inspecting the error attributes on the result? • Is there any documentation on this meta-data?

wilkerlucio20:11:45

hello, yes, the data is populated, the plugin was removed because it became native (it always does that in lenient mode)

wilkerlucio20:11:09

but if its missing something you need, please let me know

pieterbreed08:12:11

ok thank you 👍:skin-tone-4: I'm feeling a little dumb; I'm not seeing anything about meta-data in the error handling page?

wilkerlucio14:12:36

the meta is used internally by the fns described in that page, you can see it in the attribute-error impl for example: https://github.com/wilkerlucio/pathom3/blob/main/src/main/com/wsscode/pathom3/error.cljc#L75

1
wilkerlucio14:12:47

in this line it pulls the stats from the meta

pieterbreed15:12:07

Ok - what I’m hearing you say is this is part of the implementation. On our side I will remove the code that depended on it. Thank you, pathom is cool to work with