> For the complete documentation index, see [llms.txt](https://fivesobes.gitbook.io/cherry3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fivesobes.gitbook.io/cherry3/other-operators/update-operators/usdpush.md).

# $push

| Name                                                   | Usage Type                                    | Description                                                                                        |
| ------------------------------------------------------ | --------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| <mark style="background-color:green;">**$push**</mark> | <mark style="color:orange;">**Object**</mark> | <mark style="background-color:yellow;">**$push Operator is Used to Add to Array Type Data**</mark> |

```javascript
/* Example Usage */
const model = ...Someone Model

(async () => {

await model.findOneAndUpdate({ name: "Test", age: 20, arr: [] },{ $push:{ arr:["test"] } });
/*
The "arr" value that was [] is now ["test"]
*/

})();

```
