Mongo DB Problem - Group Function

I am struggling with the problem below I am trying to solve it with the “group_by” function but cant seem to get it right. Is there someone that can help me out on this? Would appreciate it a lot.

What is the name of the listing in the sample_airbnb.listingsAndReviews dataset that accommodates more than 6 people and has exactly 50 reviews?

Copy/Paste the value of the “name” field into the response field without quotation marks

Hi @Lizanne_Coetzee :wave:, welcome to the community.
Can you please provide more details on which part of the query you are struggling with?
For the record, please note that the Lab is named as “Array Operators”, hence you might want to use the Array Operators being taught in the previous lecture and you can learn more about them in the Array Operator Documentation.
Also, you don’t need to use any group function for this exercise, simple find query would do the job.

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.