wilkerlucio / pathom3

Interface with complex data via graph mapping.
https://pathom3.wsscode.com
Eclipse Public License 2.0
376 stars 31 forks source link

[bug] If a bulk resolver returns a list of length <> input length pahtom hangs #199

Closed sirmspencer closed 2 months ago

sirmspencer commented 1 year ago

Why would this happen?

This happens often when a list contains a value to be looked up from a different system. In the case where there are some values and some nulls, any api call is going to return the shorter list. Think "assigned to name" when some items are assigned and some are not. It is very hard to diagnose all of the async resolvers when pathom just hangs.

What should happen?

Just like a single resolver that returns nil, a missing path error should be thrown.

wilkerlucio commented 2 months ago

Hello @sirmspencer ! Sorry for the delay, can you send me a reproduction example of this issue?

sirmspencer commented 2 months ago

Hi @wilkerlucio maybe. I'm not sure if its still an issue, we figured out some boiler plate for list type resolvers so I have not had an issue in a while.

wilkerlucio commented 2 months ago

I'm glad you hear you got it figured, I'm going to close it for now. Feel free to reopen it if the problem arises again.