MongoDB Basic Shell Commands (part-6)
MongoDB Basic Shell Commands (part-5)
Array Operators
$elemMatch
$elemMatch allows us to have access to the sub-document of an array field.
We have a database sample_training, where one of the documents of the grades collection looks like this:
{
...
munshi.dev3 min read