Question : mongodb exists and not null
Answered by : yogesh-agarwal
db.collection1.find({ 'fieldname1' : { $exists: true, $ne: null } });
Source : | Last Update : Sat, 11 Jul 20
Question : mongodb check for not null
Answered by : rasel-ahmed-9kilyai1mdfd
db.demo764.find({"LoginUserName":"Chris","LoginPassword" : { '$ne': null } });
Source : | Last Update : Thu, 30 Jun 22