Skip to content

Commit 39ba0a5

Browse files
committed
jib feedback
1 parent 2fcca1a commit 39ba0a5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

source/interact-data/raw-queries.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,20 @@ raw queries on your MongoDB database. Raw queries allow you to
2525
query the database by using MongoDB's aggregation pipeline syntax
2626
rather 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
2929
you to perform raw SQL queries on relational databases. However, {+django-odm+}
3030
does not support the ``raw()`` method. Instead, the ODM provides the
3131
``QuerySet.raw_aggregate()`` method, which you can use to send instructions
3232
to 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+
3442
Sample Data
3543
~~~~~~~~~~~
3644

0 commit comments

Comments
 (0)