About the M121: The MongoDB Aggregation Framework category

Discussion about M121 and MongoDB’s Aggregation Framework.

Hi Everyone!

I’m José Carlos, one of the TAs, and I just wanted to welcome you all to M121. We are very excited to start this new offering of the course and hope that you will enjoy learning about the aggregation framework. We encourage you to post any questions and comments here in the discussion forum so please do not hesitate to reach out to us with anything that may be in your mind.

When using the forums keep the following in mind:

  • Search for your question before posting.
  • Please don’t share answers with other learners.

Once more, welcome to M121!

Kind regards,

José Carlos

4 Likes

hi
please i have question how quand i have for the lab on $group stage movies which won at least one oscar

Hi,

I’m sorry, but I do not understand your question. What do you mean by “how quand…”? Could you elaborate a little bit your question, please?

José Carlos

Hello,

thanks for your reply. am resolving the lab $group in the chapter 3 of the aggregation framework and i need help. how can i find the movies that won at least 1 oscar ?

Thanks

Hi,

I would recommend to use a regular expression in the $match stage that matches “Won x Oscar” and “Won x Oscars”, where x is a number. An online regex tester like https://regex101.com/ may be very helpful. Please note that you can use meta-characters and quantifiers to match numbers of 1 or 2 digits.

You will find this link very helpful as well:

https://javascript.info/regexp-quantifiers

José Carlos

Hi, Which database & collection has this field awards exists and contains values like Won 2 Oscars. Regex queries are not returning any results. I am querying aggregations db movies collection. Please help.
Thanks,
Venu

Hi,

You are on the right database and collection… you likely have an error in your regular expression.

José Carlos

2 Likes

Thanks, it is resolved.