Running any of the following command removed all records from the table:
- db.my_table.remove('')
- db.my_table.remove('6717326742115057665')
I would've expected these to both be rejected. I can't find anything in the documentation of collection.remove() that would indicate this is intended behavior.
I verified this behavior using mongo shell v4.0.4 and mongodb v4.0.4.