Skip to content

POST bulk and skip duplicates #85

@ffiorentinolabid

Description

@ffiorentinolabid

Feature Description

Insert a batch of documents, skipping duplicates (on unique indexes, i.e. E11000 duplicate key error).

Desired solution

Expose ordered option on POST /bulk endpoints. Default value is true, and mongo stop operation on first invalid object in the queue, otherwise if specified as false the operation would continue and it insert all valid documents, returning an array writeErrors

Possible alternatives

It can be managed also with PATCH /bulk, with upsert: true, maybe the same requested on #11

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions