summaryrefslogtreecommitdiff
path: root/jstests/aggregation/data/articles.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/data/articles.js')
-rw-r--r--jstests/aggregation/data/articles.js65
1 files changed, 31 insertions, 34 deletions
diff --git a/jstests/aggregation/data/articles.js b/jstests/aggregation/data/articles.js
index 23c78332a77..0f55563f7be 100644
--- a/jstests/aggregation/data/articles.js
+++ b/jstests/aggregation/data/articles.js
@@ -4,44 +4,41 @@
db = db.getSiblingDB("aggdb");
db.article.drop();
-db.article.save( {
- _id : 1,
- title : "this is my title" ,
- author : "bob" ,
- posted : new Date(1079895594000) ,
- pageViews : 5 ,
- tags : [ "fun" , "good" , "fun" ] ,
- comments : [
- { author :"joe" , text : "this is cool" } ,
- { author :"sam" , text : "this is bad" }
- ],
- other : { foo : 5 }
+db.article.save({
+ _id: 1,
+ title: "this is my title",
+ author: "bob",
+ posted: new Date(1079895594000),
+ pageViews: 5,
+ tags: ["fun", "good", "fun"],
+ comments: [{author: "joe", text: "this is cool"}, {author: "sam", text: "this is bad"}],
+ other: {foo: 5}
});
-db.article.save( {
- _id : 2,
- title : "this is your title" ,
- author : "dave" ,
- posted : new Date(1912392670000) ,
- pageViews : 7 ,
- tags : [ "fun" , "nasty" ] ,
- comments : [
- { author :"barbara" , text : "this is interesting" } ,
- { author :"jenny" , text : "i like to play pinball", votes: 10 }
+db.article.save({
+ _id: 2,
+ title: "this is your title",
+ author: "dave",
+ posted: new Date(1912392670000),
+ pageViews: 7,
+ tags: ["fun", "nasty"],
+ comments: [
+ {author: "barbara", text: "this is interesting"},
+ {author: "jenny", text: "i like to play pinball", votes: 10}
],
- other : { bar : 14 }
+ other: {bar: 14}
});
-db.article.save( {
- _id : 3,
- title : "this is some other title" ,
- author : "jane" ,
- posted : new Date(978239834000) ,
- pageViews : 6 ,
- tags : [ "nasty" , "filthy" ] ,
- comments : [
- { author :"will" , text : "i don't like the color" } ,
- { author :"jenny" , text : "can i get that in green?" }
+db.article.save({
+ _id: 3,
+ title: "this is some other title",
+ author: "jane",
+ posted: new Date(978239834000),
+ pageViews: 6,
+ tags: ["nasty", "filthy"],
+ comments: [
+ {author: "will", text: "i don't like the color"},
+ {author: "jenny", text: "can i get that in green?"}
],
- other : { bar : 14 }
+ other: {bar: 14}
});