Skip to content

Commit a7e7250

Browse files
committed
query api section
1 parent 5b67a93 commit a7e7250

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/interact-data/raw-queries.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ Overview
2323
In this guide, you can learn how to use {+django-odm+} to run
2424
raw queries on your MongoDB database. Raw queries allow you to
2525
query the database by using MongoDB's aggregation pipeline syntax
26-
rather than Django methods.
26+
rather than Django methods. You can also run queries directly
27+
on your ``MongoClient`` object for expanded access to your MongoDB data.
28+
29+
Query API
30+
~~~~~~~~~
2731

2832
The Django ``QuerySet`` API provides a ``raw()`` method, which allows
2933
you to perform raw SQL queries on relational databases. However, {+django-odm+}
@@ -47,9 +51,6 @@ Django adds a ``Manager`` named ``objects`` to every model class. This default
4751
MongoDB-specific method, set your model's ``objects`` field to a custom
4852
manager called ``MongoManager``.
4953

50-
As an alternative to the ``raw_aggregate()`` method, you can run queries directly
51-
on your ``MongoClient`` object for expanded access to your MongoDB data.
52-
5354
Sample Data
5455
~~~~~~~~~~~
5556

0 commit comments

Comments
 (0)