Articles → MONGODB → Arrays In MongodbArrays In MongodbIn this article, we will discuss arrays in MongoDB.Purpose An array is used to store a collection of elements. In MongoDB, an array is declared using the square brackets i.e., [ and ].Example In this example, we will insert the data of the type array for the author field.In the picture above, the data in the array is enclosed in the square bracket.Output Posted By - Karan Gupta Posted On - Thursday, March 23, 2023 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
Query/Feedback