Skip to content

Add rule for no empty arrays in bulkWrite #4

@aashutoshrathi

Description

@aashutoshrathi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions