Skip to content

Add error handling callbacks for batch document operations#622

Merged
abnegate merged 9 commits intomainfrom
dat-569
Jul 23, 2025
Merged

Add error handling callbacks for batch document operations#622
abnegate merged 9 commits intomainfrom
dat-569

Conversation

@ArnabChatterjee20k
Copy link
Contributor

@ArnabChatterjee20k ArnabChatterjee20k commented Jul 10, 2025

  • Changes made to ensure an ongoing delete doesn't stop due to exceptions in the onNext callable
  • If exceptions coming in onNext passing them to the onError callback
  • Relationship deletes moved inside the transaction to ensure both relations and the original documents are deleted instead of relation deleted and the original not

Summary by CodeRabbit

  • New Features

    • Added support for an optional error handling callback during document deletions to improve robustness.
  • Bug Fixes

    • Enhanced error handling to catch exceptions in deletion callbacks without interrupting the deletion process.
  • Tests

    • Added comprehensive tests verifying bulk document deletion with callback support.
    • Added tests ensuring restricted deletions in various relationship types prevent parent document removal when related child documents exist.

Loading
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.

3 participants