@@ -23,30 +23,30 @@ Overview
2323In this guide, you can learn how to use {+django-odm+} to run
2424raw queries on your MongoDB database. Raw queries allow you to
2525query the database by using MongoDB's aggregation pipeline syntax
26- rather than Django methods. You can also run queries directly
26+ rather than {+framework+} methods. You can also run queries directly
2727on your ``MongoClient`` object for expanded access to your MongoDB data.
2828
2929Query API
3030~~~~~~~~~
3131
32- The Django ``QuerySet`` API provides a ``raw()`` method, which allows
32+ The {+framework+} ``QuerySet`` API provides a ``raw()`` method, which allows
3333you to perform raw SQL queries on relational databases. However, {+django-odm+}
3434does not support the ``raw()`` method. Instead, the ODM provides the
3535``raw_aggregate()`` method, which you can use to send instructions
3636to the database in pipeline stages.
3737
3838.. note::
3939
40- Django provides a ``QuerySet.aggregate()`` method, which differs from the
40+ {+framework+} provides a ``QuerySet.aggregate()`` method, which differs from the
4141 ``QuerySet.raw_aggregate()`` method. You can use ``aggregate()`` to retrieve
4242 values by aggregating a collection of model objects. To learn more about
4343 the ``aggregate()`` method, see `Aggregation <{+django-docs+}/topics/db/aggregation/>`__
44- in the Django documentation.
44+ in the {+framework+} documentation.
4545
4646You can run database queries by calling ``QuerySet`` methods on your model's
4747``Manager``. The ``Manager`` class handles database operations and allows you
48- to interact with your MongoDB data by referencing Django models. By default,
49- Django adds a ``Manager`` named ``objects`` to every model class. This default
48+ to interact with your MongoDB data by referencing {+framework+} models. By default,
49+ {+framework+} adds a ``Manager`` named ``objects`` to every model class. This default
5050``Manager`` does not support the ``raw_aggregate()`` method. To use this
5151MongoDB-specific method, set your model's ``objects`` field to a custom
5252manager called ``MongoManager``.
@@ -57,7 +57,7 @@ Sample Data
5757The examples in this guide use the ``Movie`` and ``Theater`` models, which
5858represent collections in the ``sample_mflix`` database from the :atlas:`Atlas sample datasets </sample-data>`.
5959These models explicitly set the ``objects`` field to use a custom ``MongoManager``,
60- rather than Django 's default ``Manager`` class. The model classes have the following
60+ rather than {+framework+} 's default ``Manager`` class. The model classes have the following
6161definitions:
6262
6363.. literalinclude:: /includes/interact-data/raw-queries.py
0 commit comments