✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
db.users.aggregate([
{$match: {"title" : /Star Wars/i} },
{$unwind : "$actors" },
{$group : {"_id" : "$actors._id", "val": {$avg: "$rating"}} },
{$match: {"val":{$gt:3.5}}} ]);