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