Skip to content

Instantly share code, notes, and snippets.

@kevcodez
Created October 7, 2022 14:47
Show Gist options
  • Save kevcodez/2b524df2dc93f67a39a6d2ad1b5c2b23 to your computer and use it in GitHub Desktop.
Save kevcodez/2b524df2dc93f67a39a6d2ad1b5c2b23 to your computer and use it in GitHub Desktop.
medium_mongodb_performance_array_elem_match
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