Skip to content

Commit 2c1c8d9

Browse files
committed
edits
1 parent aaaf482 commit 2c1c8d9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

snooty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ patch-version-number = "{+version-number+}.1" # a
3535
version = "v{+version-number+}"
3636
stable-api = "Stable API"
3737
api-root = "https://pymongo.readthedocs.io/en/{+patch-version-number+}/api/"
38+
django-odm = "MongoDB Backend for Django"
3839
django-api = "https://django-mongodb.readthedocs.io/en/latest/"
3940
string-data-type = "``str``"
4041
int-data-type = "``int``"

source/interact-data/raw-queries.txt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ rather than Django methods.
2828
The Django QuerySet API provides a ``QuerySet.raw()`` method, which allows
2929
you to perform raw SQL queries on relational databases. {+django-odm+}
3030
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
3232
to the database in pipeline stages.
3333

3434
Sample Data
@@ -95,7 +95,7 @@ Filter and Project Document Fields
9595

9696
This example runs a raw database query by calling the
9797
``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``
9999
collection. The code passes the following aggregation pipeline stages
100100
to ``raw_aggregate()``:
101101

@@ -125,7 +125,7 @@ to ``raw_aggregate()``:
125125
print(f"Plot of {m.title}, released on {m.released}: {m.plot}\n")
126126

127127
.. output::
128-
:language: javascript
128+
:language: none
129129
:visible: false
130130

131131
Plot of The Parent Trap, released on 1961-06-21 00:00:00+00:00:
@@ -217,7 +217,7 @@ actions:
217217
print(f"Title: {m.title}, text match details: {m.highlight}\n")
218218

219219
.. output::
220-
:language: javascript
220+
:language: none
221221
:visible: false
222222

223223
Title: Tokyo Fiancèe, text match details: [{'score': 2.3079638481140137, 'path': 'plot',
@@ -264,12 +264,11 @@ Query Geospatial Data
264264
~~~~~~~~~~~~~~~~~~~~~
265265

266266

267-
268267
Additional Information
269268
----------------------
270269

271270
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>`__
273272
in the {+django-odm+} API documentation.
274273

275274
To learn more about running aggregation operations, see

0 commit comments

Comments
 (0)