Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyMongoDBnested embedded documentsSingle-choice MCQ

Why does query B below NOT match the document, even though query A does?

// document { _id: 1, address: { city: "Paris", zip: "75001" } } A = db.t.find({ "address.city": "Paris" }) B = db.t.find({ address: { city: "Paris" } })