Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java mongodb find with multiple conditions

BasicDBObject criteria = new BasicDBObject();
criteria.append("color", "black");
criteria.append("shape", "round");
criteria.append("weight", 100);

DBCursor cur = widgets.find(criteria);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #mongodb #find #multiple #conditions
ADD COMMENT
Topic
Name
8+1 =