Lab - $unwind - hints to verify answer

Hi José Carlos,

the unwind Lab asks for a serial of operations and outcome in an specific format:

{ "_id": "First Last", "numFilms": 1, "average": 1.1 }

I burned my first shot answering and failed. But I’m not sure why. It could be the aggregation is not correct but also a format error. In other courses and labs there is a hint to verify the answer, for instance:

to verify the answer the the 25th result is:

{ "_id" : "Tom Cruise", "numFilms" : 25, "average" : 5.8 }

and this way your answer can be verified.

Is there a chance to have this kind of help here?

thanks,

Dani

1 Like

Well,

I noticed my mistake, anyway it may still be a fair request.

thanks,

Hi,

Sure!, the 10th result should be:

{ "_id" : "Donald Sutherland", "numFilms" : 61, "average" : 6.3 }

José Carlos

3 Likes

Thanks! I think it helps a lot verifying our solution.

regards,

dani