Skip to content

Commit bb60e12

Browse files
author
Sam Kleinman
committed
minor: edits to dbref page.
1 parent e4735b5 commit bb60e12

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/applications/database-references.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,27 @@ MongoDB applications use one of two methods for relating documents:
2424
cases.
2525

2626
#. :ref:`DBRefs <dbref>` are references from one document to another
27-
using the value of the first documents ``_id`` field collection,
28-
and optionally database name. To resolve DBRefs, your application
27+
using the value of the first document's ``_id`` field collection,
28+
and optional database name. To resolve DBRefs, your application
2929
must perform additional queries to return the referenced
3030
documents. Many :doc:`drivers </applications/drivers>` have helper
3131
methods that form the query for the DBRef automatically. The
3232
drivers [#offical-driver]_ do not *automatically* resolve DBRefs
3333
into documents.
3434

35-
Use DBRefs when you need to embed documents from multiple
35+
Use a DBRef when you need to embed documents from multiple
3636
collections in documents from one collection. DBRefs also provide a
37-
common format and type to represent these relationships between
38-
documents. DBRefs provide common semantics for representing these
37+
common format and type to represent these relationships among
38+
documents. The DBRef format provides common semantics for representing
3939
links between documents if your database must interact with
4040
multiple frameworks and tools.
4141

42-
Unless you have a compelling reason for using DBrefs, use manual
42+
Unless you have a compelling reason for using a DBref use manual
4343
references.
4444

4545
.. [#offical-driver] Some community supported drivers may have
46-
alternate behavior and may resolve DBRefs into documents
47-
already.
46+
alternate behavior and may resolve a DBRef into a document
47+
automatically.
4848

4949
.. _document-references:
5050

0 commit comments

Comments
 (0)