Is there a way to delete all documents of a list(List) from a collection in bulk? I am thinking of something like: mongooperations.deleteAll(list);
It doesnt have to be a List tho, just any collection that i can collect the documents in and delete them in bulk, instead of deleting always single documents.
listof documents you can input list of_id's and use a query condition matching all the_ids (can use the$inoperator). For example,mongoTemplate.remove(Query query, String collectionName)method, and the query specifies all the documents to be removed.