Skip to content

Commit 53f1435

Browse files
committed
DOCS-504 aggregation methods and commands
1 parent d6ded7c commit 53f1435

File tree

2 files changed

+48
-10
lines changed

2 files changed

+48
-10
lines changed

source/aggregation.txt

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,10 @@ For the descriptions of aggregation operators, see
3333

3434
reference/aggregation
3535

36-
In addition, MongoDB provides the following commands and methods to
37-
perform simple aggregation functions:
38-
39-
- :dbcommand:`count`
40-
- :method:`db.collection.count()`
41-
- :method:`cursor.count()`
42-
- :dbcommand:`distinct`
43-
- :method:`db.collection.distinct()`
44-
- :dbcommand:`group`
45-
- :method:`db.collection.group()`
36+
In addition to the aggregation framework, MongoDB provides simple
37+
:doc:`aggregation methods and commands </reference/simple-aggregation>`:
38+
39+
.. toctree::
40+
:maxdepth: 2
41+
42+
reference/simple-aggregation
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
=======================================
2+
Simple Aggregation Methods and Commands
3+
=======================================
4+
5+
.. default-domain:: mongodb
6+
7+
In addition to the :doc:`aggregation
8+
framework</applications/aggregation>` and :term:`map-reduce`, MongoDB
9+
provides the following methods and commands to perform aggregation:
10+
11+
Count
12+
-----
13+
14+
MongoDB offers the following command and methods to provide ``count``
15+
functionality:
16+
17+
- :doc:`/reference/command/count`
18+
19+
- :doc:`/reference/method/db.collection.count`
20+
21+
- :doc:`/reference/method/cursor.count`
22+
23+
Distinct
24+
--------
25+
26+
MongoDB offers the following command and method to provide the
27+
``distinct`` functionality:
28+
29+
- :doc:`/reference/command/distinct`
30+
31+
- :doc:`/reference/method/db.collection.distinct`
32+
33+
Group
34+
-----
35+
36+
MongoDB offers the following command and method to provide ``group``
37+
functionality:
38+
39+
- :doc:`/reference/command/group`
40+
41+
- :doc:`/reference/method/db.collection.group`

0 commit comments

Comments
 (0)