diff options
Diffstat (limited to 'jstests/readonly/aggregate.js')
-rw-r--r-- | jstests/readonly/aggregate.js | 87 |
1 files changed, 43 insertions, 44 deletions
diff --git a/jstests/readonly/aggregate.js b/jstests/readonly/aggregate.js index 9640c231900..a79e7ed19d2 100644 --- a/jstests/readonly/aggregate.js +++ b/jstests/readonly/aggregate.js @@ -9,63 +9,62 @@ runReadOnlyTest(function() { assert.doesNotThrow(() => { writableCollection.insertMany([ { - award: "Best Picture", - nominations: [ - {title: "The Big Short"}, - {title: "Bridge of Spies"}, - {title: "Brooklyn"}, - {title: "Max Max: Fury Road"}, - {title: "The Martian"}, - {title: "The Revenant"}, - {title: "Room"}, - {title: "Spotlight"} - ] + award: "Best Picture", + nominations: [ + {title: "The Big Short"}, + {title: "Bridge of Spies"}, + {title: "Brooklyn"}, + {title: "Max Max: Fury Road"}, + {title: "The Martian"}, + {title: "The Revenant"}, + {title: "Room"}, + {title: "Spotlight"} + ] }, { - award: "Best Actor", - nominations: [ - {title: "Trumbo", person: "Bryan Cranston"}, - {title: "The Martian", person: "Matt Damon"}, - {title: "The Revenant", person: "Leonardo DiCaprio"}, - {title: "Steve Jobs", person: "Michael Fassbender"}, - {title: "The Danish Girl", person: "Eddie Redmayne"} - ] + award: "Best Actor", + nominations: [ + {title: "Trumbo", person: "Bryan Cranston"}, + {title: "The Martian", person: "Matt Damon"}, + {title: "The Revenant", person: "Leonardo DiCaprio"}, + {title: "Steve Jobs", person: "Michael Fassbender"}, + {title: "The Danish Girl", person: "Eddie Redmayne"} + ] }, { - award: "Best Actress", - nominations: [ - {title: "Carol", person: "Cate Blanchett"}, - {title: "Room", person: "Brie Larson"}, - {title: "Joy", person: "Jennifer Lawrence"}, - {title: "45 Years", person: "Charlotte Rampling"}, - {title: "Brooklyn", person: "Saoirse Ronan"} - ] + award: "Best Actress", + nominations: [ + {title: "Carol", person: "Cate Blanchett"}, + {title: "Room", person: "Brie Larson"}, + {title: "Joy", person: "Jennifer Lawrence"}, + {title: "45 Years", person: "Charlotte Rampling"}, + {title: "Brooklyn", person: "Saoirse Ronan"} + ] }, { - award: "Best Supporting Actor", - nominations: [ - {title: "The Big Short", person: "Christian Bale"}, - {title: "The Revenant", person: "Tom Hardy"}, - {title: "Spotlight", person: "Mark Ruffalo"}, - {title: "Bridge Of Spies", person: "Mark Rylance"}, - {title: "Creed", person: "Sylvester Stallone"} - ] + award: "Best Supporting Actor", + nominations: [ + {title: "The Big Short", person: "Christian Bale"}, + {title: "The Revenant", person: "Tom Hardy"}, + {title: "Spotlight", person: "Mark Ruffalo"}, + {title: "Bridge Of Spies", person: "Mark Rylance"}, + {title: "Creed", person: "Sylvester Stallone"} + ] }, { - award: "Best Supporting Actress", - nominations: [ - {title: "The Hateful Eight", person: "Jennifer Jason Leigh"}, - {title: "Carol", person: "Rooney Mara"}, - {title: "Spotlight", person: "Rachel McAdams"}, - {title: "The Danish Girl", person: "Alicia Vikander"}, - {title: "Steve Jobs", person: "Kate Winslet"} - ] + award: "Best Supporting Actress", + nominations: [ + {title: "The Hateful Eight", person: "Jennifer Jason Leigh"}, + {title: "Carol", person: "Rooney Mara"}, + {title: "Spotlight", person: "Rachel McAdams"}, + {title: "The Danish Girl", person: "Alicia Vikander"}, + {title: "Steve Jobs", person: "Kate Winslet"} + ] } ]); }); }, exec: function(readableCollection) { - // Find titles nominated for the most awards. var mostAwardsPipeline = [ {$unwind: "$nominations"}, |