Answers for "check if null mongodb"

5

mongodb exists and not null

db.collection1.find({ 'fieldname1' : { $exists: true, $ne: null } });
Posted by: Guest on July-04-2020
1

mongodb query missing field

db.inventory.find( { item: null } )
Posted by: Guest on January-12-2021

Browse Popular Code Answers by Language