Skip to content

Commit 9e17c92

Browse files
author
Bob Grabar
committed
DOCS-564 minor edits
1 parent 284b338 commit 9e17c92

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

source/release-notes/2.2.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Behavioral Changes
306306
Restrictions on Collection Names
307307
````````````````````````````````
308308

309-
Collection names cannot contain the ``$`` character in version 2.2. The
309+
In version 2.2, collection names cannot contain the ``$`` character. The
310310
character is still allowed for collection names in MongoDB versions
311311
prior to 2.2.
312312

@@ -323,33 +323,34 @@ names can be any UTF-8 string with the following exceptions:
323323

324324
- Do not name a collection using the ``system.`` prefix. The ``system.``
325325
prefix is reserved for system collections, such as the
326-
``system.indexes`` collection that stores index keys.
326+
``system.indexes`` collection.
327327

328328
- The maximum size of a collection name is 128 characters, including the
329329
name of the db and indexes. A best practice is to keep your collection
330330
names below 80 characters.
331331

332332
If your collection name includes special characters, such as the
333333
underscore character, then to access the collection use the
334-
:method:`db.getCollection()` method or a similar :api:`method for your
334+
:method:`db.getCollection()` method or a :api:`similar method for your
335335
driver <>`.
336336

337-
.. example:: For example, to create a collection ``_foo`` and populate it
338-
with document ``{ a : 1 }``, you issue the following command:
337+
.. example:: To create a collection ``_foo`` and populate it with
338+
document ``{ a : 1 }``, you would issue the following command:
339339

340340
.. code-block:: javascript
341341

342342
db.getCollection("_foo").insert( { a : 1 } )
343343

344-
To query the collection you issue the following command and get the
345-
following result:
344+
To query the collection, you would issue the following command and
345+
get the following result:
346346

347347
.. code-block:: javascript
348348

349349
db.getCollection("_foo").find()
350350
{ "_id" : ObjectId("506dbf800f70bf70d1ca613b"), "a" : 1 }
351351

352-
You *cannot* query the ``_foo`` collection with this command:
352+
If you were to query the ``_foo`` collection with dot notation, you
353+
would receive an error, as shown here:
353354

354355
.. code-block:: javascript
355356

0 commit comments

Comments
 (0)