Check the element exists inside the Array in Mongo DB
Description
The below mentioned query is used to check whether the specific element is exists in an array.
Query
db.getCollection('ProcessFlows').find({"Processes" : {$size: 1 ,$elemMatch: { "_t": {$exists: true}}}})  
 
 
 
          
      
 
  
 
 
 
 
 
 
 
 
 
 
 
No comments:
Post a Comment