Sample Header Ad - 728x90

MongoDB conditional query for array $size

1 vote
1 answer
1053 views
I have a user collection, and each user has different number of id_cards, all id_cards are stored in an array, I can get all users that have 7 id_card by using array $size operator, how do I get the users with say more then 5 id_cards?
Asked by Edik Mkoyan (229 rep)
Dec 18, 2015, 05:25 PM
Last activity: May 6, 2024, 04:01 PM