Chapter 1 lab - computing fields

Is there anywhere to get help on this? I am clearly missing something because I cannot figure this out. The docs are awful and don’t help at all. Also, 90% of this is not covered in this course or the previous one. I am completely lost here.

This is as close as I have gotten, and clearly I am way off…

db.movies.aggregate([
{$match: {
$eq: [1, {$size: {$split: ["$title"]}}]
}}
]).itcount()

Hi, I’m also stuck on this task since yesterday.
Split your pipeline in two stages.
Get array from “title” in the first one.
Then filter this array by length in the second one.

1 Like

Hi @Lee_94769 & @Anatoly_05899,

Please check your discourse inbox for more details.

@Anatoly_05899 I see you have already completed the lab successfully, but please feel free to share your feedback.

Please let me know if you have any questions.

Thanks,
Sonali

could u share your code please to see how to split the pipeline in two stages ?

What have you tried so far?

What results did you get?

Share any error message you got.

2 Likes