Skip to content

Model.bulkWrite(...) throws an error with an empty arrays #9131

@AbdelrahmanHafez

Description

@AbdelrahmanHafez

Currently Model.bulkWrite([ ]); throws an error, this can happen due to a dynamically created array of operations that can have length of 0.

I'll put in a PR that returns a default bulkwrite result in this case instead of going all the way to Mongo and getting an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis issue is a user-facing general improvement that doesn't fix a bug or add a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions