MongoDB Java API - whats the equivalent for db.collection.remove()? -
as explained here, db.bios.remove() deletes all documents bios collection of connected db. equivalent method functionality in mongodb java api?
i did not find methods db.removecollection(..) or dbcollection.removeall(). please me.
you can calling remove method empty object.
yourdbcollection.remove(new basicdbobject()); the equivalent mongo shell command db.bios.remove({});
remember mongodb query objects work filters: let through doesn't explicitely violates them.
Comments
Post a Comment