Remove in momgodb using java not giving proper result. Am i missing something? My database is as below.
My code for removeing records where index = "7"
is as,
BasicDBObject whereQuery = new BasicDBObject("nodes.index", new BasicDBObject("$eq", "7"));
node_info.remove(whereQuery);
It's returning all the records and deleting my complete database. What can be probably wrong.?