Skip to content

Commit 9b55f0c

Browse files
author
Dave
authored
DOCSP-20110 Results not showing (#157)
1 parent 78824a2 commit 9b55f0c

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

source/reference/operator/aggregation/mergeObjects.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,15 @@ accumulator in a :pipeline:`$group` stage that groups documents by the
219219
The operation returns the following documents:
220220

221221
.. code-block:: javascript
222-
{
223-
_id: 'A',
224-
mergedSales: { '2017Q1': 500, '2017Q2': 500, '2016Q1': 400, '2016Q2': 300, '2016Q3': 0, '2016Q4': 0 }
225-
},
226-
{
227-
_id: 'B',
228-
mergedSales: { '2017Q1': 300, '2016Q3': 100, '2016Q4': 250 }
229-
}
222+
223+
{
224+
_id: 'A',
225+
mergedSales: { '2017Q1': 500, '2017Q2': 500, '2016Q1': 400, '2016Q2': 300, '2016Q3': 0, '2016Q4': 0 }
226+
},
227+
{
228+
_id: 'B',
229+
mergedSales: { '2017Q1': 300, '2016Q3': 100, '2016Q4': 250 }
230+
}
230231

231232
.. note::
232233

0 commit comments

Comments
 (0)