@@ -28,7 +28,7 @@ rather than Django methods.
28
28
The Django QuerySet API provides a ``QuerySet.raw()`` method, which allows
29
29
you to perform raw SQL queries on relational databases. {+django-odm+}
30
30
does not support the ``raw()`` method. Instead, the ODM provides the
31
- ``QuerySet.raw_aggregate()`` method, which you can use to send commands
31
+ ``QuerySet.raw_aggregate()`` method, which you can use to send instructions
32
32
to the database in pipeline stages.
33
33
34
34
Sample Data
@@ -95,7 +95,7 @@ Filter and Project Document Fields
95
95
96
96
This example runs a raw database query by calling the
97
97
``raw_aggregate()`` method on your ``Movie`` objects,
98
- which represent documents in the ``sample_mflix.movies`` MongoDB
98
+ which represent documents in the ``sample_mflix.movies``
99
99
collection. The code passes the following aggregation pipeline stages
100
100
to ``raw_aggregate()``:
101
101
@@ -125,7 +125,7 @@ to ``raw_aggregate()``:
125
125
print(f"Plot of {m.title}, released on {m.released}: {m.plot}\n")
126
126
127
127
.. output::
128
- :language: javascript
128
+ :language: none
129
129
:visible: false
130
130
131
131
Plot of The Parent Trap, released on 1961-06-21 00:00:00+00:00:
@@ -217,7 +217,7 @@ actions:
217
217
print(f"Title: {m.title}, text match details: {m.highlight}\n")
218
218
219
219
.. output::
220
- :language: javascript
220
+ :language: none
221
221
:visible: false
222
222
223
223
Title: Tokyo Fiancèe, text match details: [{'score': 2.3079638481140137, 'path': 'plot',
@@ -264,12 +264,11 @@ Query Geospatial Data
264
264
~~~~~~~~~~~~~~~~~~~~~
265
265
266
266
267
-
268
267
Additional Information
269
268
----------------------
270
269
271
270
To view more examples that use the ``raw_aggregate()`` method,
272
- see `QuerySet API Reference <{+django-api+}querysets.htmln >`__
271
+ see `QuerySet API Reference <{+django-api+}querysets.html >`__
273
272
in the {+django-odm+} API documentation.
274
273
275
274
To learn more about running aggregation operations, see
0 commit comments