---
title: "Discussion on \"MongoDB Basic Shell Commands (part-6)\" | Hashnode"
description: "Discussion on \"MongoDB Basic Shell Commands (part-6)\". MongoDB Basic Shell Commands (part-5)\nArray Operators\n$elemMatch\n$elemMatch allows us to have access to the sub-document of an array field.\nWe have a database sample_training, where one of the documents of the grades collection looks like this:\n{\n   ..."
url: "https://hashnode.com/posts/mongodb-basic-shell-commands-part-6/6016f69e13f0a55761bdf4e5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [MongoDB Basic Shell Commands (part-6)](https://munshi.dev/mongodb-basic-shell-commands-part-6?utm_source=hashnode&utm_medium=feed)

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: { ...

Jan 31, 2021 · 3 min read · munshi.dev  
Updated Feb 2, 2021  
Read the article

-   [#mongodb](https://hashnode.com/tag/mongodb)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#databases](https://hashnode.com/tag/databases)
-   [#mongo](https://hashnode.com/tag/mongo)
-   [#nosql](https://hashnode.com/tag/nosql)

## Written by

[Faruk Abdulla Munshi](https://hashnode.com/@faruk)

@faruk · Kolkata, India

  
[View profile](https://hashnode.com/@faruk)

Curious Seeker

Unlocking the divinity in humanity 😊

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
