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
2525query the database by using MongoDB's aggregation pipeline syntax
2626rather than Django methods.
2727
28- The Django QuerySet API provides a ``QuerySet.raw()`` method, which allows
28+ The Django `` QuerySet`` API provides a ``QuerySet.raw()`` method, which allows
2929you to perform raw SQL queries on relational databases. However, {+django-odm+}
3030does not support the ``raw()`` method. Instead, the ODM provides the
3131``QuerySet.raw_aggregate()`` method, which you can use to send instructions
3232to the database in pipeline stages.
3333
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+
3442Sample Data
3543~~~~~~~~~~~
3644
You can’t perform that action at this time.
0 commit comments