Created
October 7, 2022 14:47
-
-
Save kevcodez/2b524df2dc93f67a39a6d2ad1b5c2b23 to your computer and use it in GitHub Desktop.
medium_mongodb_performance_array_elem_match
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
db.assets.find({ | |
myArray: { | |
$elemMatch: { | |
myProperty: 'val' | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment