Count them all

Report a typo

We have a collection named cars:

[
  {id: 1, manufacturer: "Audi", model: "A8", top_speed: 200},
  {id: 2, manufacturer: "BMW", model: "X5", top_speed: 150},
  {id: 3, manufacturer: "Tesla", model: "Model X", top_speed: 200},
  {id: 4, manufacturer: "Audi", model: "R8", top_speed: 170}
]

How many records will we get after executing this command?

db.cars.find({$and: [{manufacturer: "Audi"}, {top_speed: 200}]})
Enter a number
___

Create a free account to access the full topic