File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,20 @@ raw queries on your MongoDB database. Raw queries allow you to
25
25
query the database by using MongoDB's aggregation pipeline syntax
26
26
rather than Django methods.
27
27
28
- The Django QuerySet API provides a ``QuerySet.raw()`` method, which allows
28
+ The Django `` QuerySet`` API provides a ``QuerySet.raw()`` method, which allows
29
29
you to perform raw SQL queries on relational databases. However, {+django-odm+}
30
30
does not support the ``raw()`` method. Instead, the ODM provides the
31
31
``QuerySet.raw_aggregate()`` method, which you can use to send instructions
32
32
to the database in pipeline stages.
33
33
34
+ .. note::
35
+
36
+ Django provides a ``QuerySet.aggregate()`` method, which differs from the
37
+ ``QuerySet.raw_aggregate()`` method. You can use ``aggregate()`` to retrieve
38
+ values by aggregating a collection of model objects. To learn more about
39
+ the ``aggregate()`` method, see `Aggregation <{+django-docs+}/topics/db/aggregation/>`__
40
+ in the Django documentation.
41
+
34
42
Sample Data
35
43
~~~~~~~~~~~
36
44
You can’t perform that action at this time.
0 commit comments