@@ -214,6 +214,8 @@ JavaScript code to the :operator:`$where` field.
214
214
This will ensure that your application sends ``user_value`` to the
215
215
database server as data rather than code.
216
216
217
+ .. _faq-dollar-sign-escaping:
218
+
217
219
Dollar Sign Operator Escaping
218
220
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
219
221
@@ -338,10 +340,6 @@ Consider the following :program:`mongo` example:
338
340
{ "_id" : ObjectId("4b031566ce8de6586fb002c9"), "x" : true }
339
341
{ "_id" : ObjectId("4b031563ce8de6586fb002c8"), "x" : "Tue Nov 17 2009 16:28:03 GMT-0500 (EST)" }
340
342
341
- .. warning::
342
-
343
- Mixing types for the same field is not encouraged.
344
-
345
343
The :operator:`$type` operator provides access to :term:`BSON type
346
344
<BSON types>` comparison in the MongoDB query syntax. See the
347
345
documentation on :term:`BSON types` and the :operator:`$type` operator
@@ -382,22 +380,22 @@ exceptions:
382
380
383
381
- The maximum size of a collection name is 128 characters, including
384
382
the name of the database. However, for maximum flexibility,
385
- collections should have names less than 80 characters.
383
+ collections should have names less than 80 characters.
386
384
387
385
If your collection name includes special characters, such as the
388
386
underscore character, then to access the collection use the
389
387
:method:`db.getCollection()` method or a :api:`similar method for your
390
388
driver <>`.
391
389
392
- .. example:: To create a collection ``_foo`` and insert the
390
+ .. example:: To create a collection ``_foo`` and insert the
393
391
``{ a : 1 }`` document, use the following operation:
394
392
395
393
.. code-block:: javascript
396
394
397
395
db.getCollection("_foo").insert( { a : 1 } )
398
396
399
397
To perform a query, use the :method:`find() <db.collection.find()>`
400
- find method, in as the following:
398
+ find method, in as the following:
401
399
402
400
.. code-block:: javascript
403
401
0 commit comments