Articles → MONGODB → Query The Embedded Fields And Arrays In MongodbQuery The Embedded Fields And Arrays In MongodbIn this article, we will discuss how to query the embedded fields and arrays in MongoDB.Querying The Embedded Fields The embedded fields can be queried using the following syntax: -[attribute].[field]Querying An Array An array can be queried in 2 ways. In the first method, we check if the value exists in an array.Or we can find an array that contains only one element.Posted By - Karan Gupta Posted On - Friday, January 5, 2024 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
[attribute].[field]
Query/Feedback