Answers for "check if a field exists in mongodb doc"

7

mongodb check if field exists

db.records.find( { a: { $exists: true } } )
Posted by: Guest on October-09-2020
0

mongodb check if field exists java

DBObject query;
query = new BasicDBObject("fields_name", new BasicDBObject("$exists", true));
DBCursor result = collection.find(query);
Posted by: Guest on December-07-2020

Code answers related to "check if a field exists in mongodb doc"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language