The last lab, 4.2, in Chapter 4: CRUD Optimization of MongoDB M201 Performance, I got it wrong. I had typed out the whole syntax for the index to query instead of just {stars : 1}
. I typed:
db.restaurants.createIndex({stars : 1}), and I even tried:
db.restaurants.createIndex({stars : 1, cuisine : 1}).
Is there a way I can get a passing grade on this? I didn’t realize it only wanted that small portion of the index instead of the whole thing.