$match homework - Not starting with 23 documents

The output from the query I wrote to answer the question was significantly bigger then the options available. I got something like 800+!

I ran the following query to validate the data set:
MongoDB Enterprise Cluster0-shard-0:PRIMARY> db.movies.count()

I would expect this to show 23 but I’m somehow getting 44497 :frowning:

Hi there,

The movie collection contains about 44.5k documents so getting 44497 after running db.movies.count() sounds correct. Instead, if you properly write the $match stage of the aggregate pipeline to meet the stated criteria running db.movies.aggregate(pipeline).itcount() should return 23 documents (note that this assumes you placed your aggregation logic inside a variable called pipeline)