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
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.
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
2832The Django ``QuerySet`` API provides a ``raw()`` method, which allows
2933you 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
4751MongoDB-specific method, set your model's ``objects`` field to a custom
4852manager 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-
5354Sample Data
5455~~~~~~~~~~~
5556
You can’t perform that action at this time.
0 commit comments