MongoDB C100DBA Exam - Topic 7 Question 131 Discussion
Consider the following document from the products collection:What does the following query using $elemMatch return? db.products.find( { product_code: "345678" }, { variations: { $elemMatch: { size: ^L^ } } } )
B) Returns the document but with only one element in the variations array (corresponding to size L)
A) Returns the complete document but retrieves only the size field from the array
C) Returns the complete document since MongoDB does not support partial array retrieval
D) Returns the complete document but retrieves only the size field from the array and also with only one element in the variations array (corresponding to size L)
Walton
3 days agoJackie
8 days agoWalton
14 days agoDenae
19 days agoCarry
24 days agoTerrilyn
29 days agoBobbye
1 month agoRebbeca
1 month agoAudrie
1 month agoBecky
2 months agoClaribel
2 months agoDorathy
2 months ago