Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongodb aggregate cond $in

cond: {
  $and: [{
  	$in: ['$$viewsDoc.year', [1, 2, 3]]
  }]
}
 
PREVIOUS NEXT
Tagged: #mongodb #aggregate #cond
ADD COMMENT
Topic
Name
9+2 =