aslagle/reactive-table

Table is not updated when data is $unset (context.server)

Opened this issue · 1 comments

When ReactiveTable is used with pub/sub on the server side (only in this case), the table is not updated when a field is unset. I have dug inside the code and it seems like the publication is working correctly but the local Mongo.Collection is not updating accordingly. Any help is welcome

The behaviours is even stranger has if a sub element like "name" in $unset, local database will be updated, but not if it's a first level element like "job"

{ 
   contact: {
        name: "Peter"
   }
   job: "Director"
}