Skip to content

Commit f8778e2

Browse files
committed
DOCS-535 minor edits from this morning
1 parent f2a383a commit f8778e2

File tree

2 files changed

+15
-40
lines changed

2 files changed

+15
-40
lines changed

source/includes/table-sql-to-mongo-schema-examples.yaml

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mongo1: |
4242
status: "A"
4343
} )
4444
45-
However, you can also explicitly create a table:
45+
However, you can also explicitly create a collection:
4646
4747
.. code-block:: javascript
4848
:emphasize-lines: 1
@@ -59,44 +59,26 @@ sql2: |
5959
ALTER TABLE users
6060
ADD join_date DATETIME
6161
mongo2: |
62-
Update operations can add fields to all documents in a
63-
collection:
64-
65-
.. code-block:: javascript
66-
:emphasize-lines: 1-5
67-
68-
db.users.update(
69-
{ },
70-
{ $set: { join_date: null } },
71-
{ multi: 1 }
72-
)
73-
74-
Because each :term:`document` determines its own fields, a
75-
document may contain fields not contained by the other
76-
documents in the collection.
62+
Collections do not describe or enforce the structure of the
63+
constituent documents. See the :wiki:`Schema Design
64+
<Schema+Design>` wiki page for more information.
7765
ref2: |
7866
See :method:`update() <db.collection.update()>` and
79-
:operator:`$set` for more information.
67+
:operator:`$set` for more information on changing the structure
68+
of documents in a collection.
8069
sql3: |
8170
.. code-block:: sql
8271
8372
ALTER TABLE users
8473
DROP COLUMN join_date
8574
mongo3: |
86-
Update operations can remove fields from all documents in a
87-
collection:
88-
89-
.. code-block:: javascript
90-
:emphasize-lines: 1-5
91-
92-
db.users.update(
93-
{ },
94-
{ $unset: { join_date: "" } },
95-
{ multi: 1 }
96-
)
75+
Collections do not describe or enforce the structure of the
76+
constituent documents. See the :wiki:`Schema Design
77+
<Schema+Design>` wiki page for more information.
9778
ref3: |
98-
See :method:`update() <db.collection.update()>`
99-
and :operator:`$unset` for more information.
79+
See :method:`update() <db.collection.update()>` and
80+
:operator:`$set` for more information on changing the structure
81+
of documents in a collection.
10082
sql4: |
10183
.. code-block:: sql
10284
@@ -129,8 +111,8 @@ mongo6: |
129111
.. code-block:: javascript
130112
:emphasize-lines: 1
131113
132-
db.users.remove()
114+
db.users.drop()
133115
ref6: |
134-
See :method:`remove() <db.collection.remove()>` for
116+
See :method:`drop() <db.collection.drop()>` for
135117
more information.
136118
...

source/includes/table-sql-to-mongo-select-examples.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,7 @@ mongo1: |
4242
.. code-block:: javascript
4343
:emphasize-lines: 1
4444
45-
db.users.find( )
46-
47-
*or*
48-
49-
.. code-block:: javascript
50-
:emphasize-lines: 1
51-
52-
db.users.find( { } )
45+
db.users.find()
5346
ref1: |
5447
See :method:`find() <db.collection.find()>`
5548
for more information.

0 commit comments

Comments
 (0)