---
title: "Discussion on \"MongoDB Basic Shell Commands (part-5)\" | Hashnode"
description: "Discussion on \"MongoDB Basic Shell Commands (part-5)\". MongoDB Basic Shell Commands (part-4)\nArray Operators\n$push\n\nAllows us to add an element to an array.\nTurns a field into an array field if it was previously a different type.\n\nThe following command updates one document in the grades collection where ..."
url: "https://hashnode.com/posts/mongodb-basic-shell-commands-part-5/60158c27e54673573b571e06"
---

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

Discussion

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

MongoDB Basic Shell Commands (part-4) Array Operators $push Allows us to add an element to an array. Turns a field into an array field if it was previously a different type. The following command updates one document in the grades collection where ...

Jan 30, 2021 · 7 min read · munshi.dev  
Updated Jan 31, 2021  
Read the article

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

## 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.
