Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rule for no empty arrays in bulkWrite #4

Open
aashutoshrathi opened this issue Jan 25, 2024 · 0 comments
Open

Add rule for no empty arrays in bulkWrite #4

aashutoshrathi opened this issue Jan 25, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@aashutoshrathi
Copy link
Owner

Rule Name: mongoose-no-empty-array-in-bulk-write
Description: In Mongoose when you provide an empty update array to the model.bulkWrite it leads to unexpected server hang issues, to prevent that there should always be a check before bulkWrite on the first argument that it's length is not zero

@aashutoshrathi aashutoshrathi added the good first issue Good for newcomers label Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant