Skip to content

Commit 9efb2a8

Browse files
author
Sam Kleinman
committed
DOCS-520 correcting smart quotes
1 parent f1de578 commit 9efb2a8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/applications/aggregation.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,14 @@ using the following format:
120120
.. code-block:: javascript
121121

122122
{
123-
title : this is my title ,
124-
author : bob ,
123+
title : "this is my title" ,
124+
author : "bob" ,
125125
posted : new Date () ,
126126
pageViews : 5 ,
127-
tags : [ fun , good , fun ] ,
127+
tags : [ "fun" , "good" , "fun" ] ,
128128
comments : [
129-
{ author :joe , text : this is cool } ,
130-
{ author :sam , text : this is bad }
129+
{ author :"joe" , text : "this is cool" } ,
130+
{ author :"sam" , text : "this is bad" }
131131
],
132132
other : { foo : 5 }
133133
}
@@ -144,10 +144,10 @@ command:
144144
author : 1,
145145
tags : 1,
146146
} },
147-
{ $unwind : $tags },
147+
{ $unwind : "$tags" },
148148
{ $group : {
149149
_id : { tags : "$tags" },
150-
authors : { $addToSet : $author }
150+
authors : { $addToSet : "$author" }
151151
} }
152152
);
153153

0 commit comments

Comments
 (0)