File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,11 @@ Overview
23
23
In this guide, you can learn how to use {+django-odm+} to run
24
24
raw queries on your MongoDB database. Raw queries allow you to
25
25
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
+ ~~~~~~~~~
27
31
28
32
The Django ``QuerySet`` API provides a ``raw()`` method, which allows
29
33
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
47
51
MongoDB-specific method, set your model's ``objects`` field to a custom
48
52
manager called ``MongoManager``.
49
53
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
-
53
54
Sample Data
54
55
~~~~~~~~~~~
55
56
You can’t perform that action at this time.
0 commit comments