Skip to content

Conversation

omahili
Copy link

@omahili omahili commented Jul 14, 2025

I'm attempting to fix #1288 and as described in the discussion it seemed to be an issue with the mapping in batch execution. However after some debugging I noticed that the executor is failing within a try-catch and returning the error from completeValue so I'm not sure we can fix this at the batch execution level only.

One additional issue I found was within the results in DataLoader, so I had to change splitResults to match the number of expected results. This could potentially be removed if we find a way to better map the results before it gets there.

I added a couple of tests for both a single and multiple executions. The only way I could simulate an early exit with a null result within the executable schema was to add the type def without the resolver for it.

Let me know if you have any idea on the best way to move forward with this.

@omahili omahili changed the title Fix non-nullable field error in batch execution Fix non-nullable field error in batch execution [DEV-4902] Jul 14, 2025
@omahili omahili changed the title Fix non-nullable field error in batch execution [DEV-4902] Fix non-nullable field error in batch execution Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot return null for non-nullable field
1 participant