How get documents from MongoDB database with the condition that an array field has values more than 1
Solution: db . collection . find ({ $expr : { $gt : [ { $size : "$arrayfield" }, 1 ] } }) Try it out here: mongoplayground