Closed pbr0ck3r closed 6 years ago
@pbr0ck3r Looks like it builds a $regex
query for the ns
field. (stream.js)
You should be able to do ns: 'test.roles|test.companies|test.users'
.
@vinespring... that does indeed work! Thanks so much!
Closing since solution was pointed out.
Is there a way to have multiple DB and tables in one statement?
I am trying the following...
mongoOplog('mongodb://127.0.0.1:27017/local', {ns: 'test.users', ns: 'test.roles', ns:'test.companies'})
I get events (insert, delete, update) to fire on
companies
but for some reasonroles, users
will not fire.Is there another way I should be monitoring multiple tables in the database?