Skip to content

Use $addToSet when adding objects to sub document #9

@nicostuhlfauth

Description

@nicostuhlfauth

As the index for sub-documents has been removed, we need to use $addToSet to ensure, an object is not added twice.
See: https://docs.mongodb.com/manual/reference/operator/update/addToSet/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions