Open dokithonon opened 8 years ago
I think this is a bug in the package - it doesn't combine the selector and the filter correctly when the selector has an $and. Thanks for pointing this out :)
same issue with $or operator
You can use like this -
return { "userId": 'w7pxMccWs5MxHyKGf'},{"show" : true}
$or working fine @petsinho
Hello, I am trying to use the $and mongo selector like this :
ReactiveTable.publish("myLowStock", Stocks, function(){ return { $and: [ { "userId": 'w7pxMccWs5MxHyKGf' },{"show" : true} ] } }
The table show only what match the two conditions (as expected) but the filter does not work anymore.Any Idea ? Thanks a lot. Thomas