Use projections in Compass IDE

I have been struggling with Quiz in chapter 4 - used up 2 of 3 attempts. I wanted to save my queries too and noticed that feature in compassn IDE. I have been using it’s Mongosh shell ex:
db.companies.find ({
$and: [
{“category_code”: {$in: [“web”,“social”]}}

But the option to see the founded_year as a projection is not enabled. What should I be doing. I also think I must understand the quiz question wrong as my roll up query is same as parts. I’ll use a separate thread for that.

Answered this question myself - just need to start typing in field [project] as in

1 Like

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