Chapter 4 Lab 2: Array Operators

sample_airbnb.listingsAndReviews collection find out how many documents have the “property_type” “House”, and include “Changing table” as one of the “amenities”?

What is you question exactly? What have you tried so far? What are the issues your are having?

How to write MQL for this.

To match a field to a value you simply use FieldName : FieldValue. In the problem above property_type is your field name and "House"

In the lecture Array Operators they present some array operators and there is an example using listingAndReviews that shows how to use the $all on the amenities field. The same collection and the same field as the lab question.