Last active
October 9, 2017 13:13
-
-
Save rafaelmaeuer/b7cb0adef1cf713a0856fda76655589b to your computer and use it in GitHub Desktop.
Find document with array that contains a specific value (MongoDB) - From https://stackoverflow.com/questions/18148166/find-document-with-array-that-contains-a-specific-value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PersonModel.find({ favouriteFoods: { "$in" : ["sushi"]} }, ...); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment