MongoDB : Post 9 : Specific query operators : $exists

$exists : $exists operator , when true , $exists matches the documents that contain the field.It also includes the documents where the field value is ‘null’.When false, the query returns only the documents that do not contain the field.The example with various operators will give a better picture : Example 1 : The following query selects… Read More »