Skip to content

MaterializedView does not delete correctly documents #55

Description

@estebgonza

When a Materialized View triggers a deleteDocument, the accumulators are updated correctly but not the "_id".

Reproduction:

With collection: [{country: 'France'}]

Create a MV with a groupBy on country: the view contains an 'France' entry.
Trigger addDocument on the mv: mv.addDocument({country: 'Switzerland'}).
The MV contains: [{country: 'France'}, {country: 'Switzerland'}]
Trigger deleteDocument: mv.deleteDocument({country: 'Switzerland'})
⚠️ The MV still contains: [{country: 'France'}, {country: 'Switzerland'}] instead of [{country: 'France'}].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions