Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 28 additions & 16 deletions source/reference/database-references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,44 +170,56 @@ DBRefs have the following fields:
The order of fields in the DBRef matters, and you must use the above
sequence when using a DBRef.

Support
~~~~~~~
Driver Support for DBRefs
~~~~~~~~~~~~~~~~~~~~~~~~~

**C**
The C driver contains no support for DBRefs. You can traverse
references manually.

**C++**
The C++ driver contains no support for DBRefs. You can transverse
The C++ driver contains no support for DBRefs. You can traverse
references manually.

**C#**
The C# driver provides access to DBRef objects with the
:api:`MongoDBRef Class <csharp/current/html/46c356d3-ed06-a6f8-42fa-e0909ab64ce2.htm>`
and supplies the :api:`FetchDBRef Method <csharp/current/html/1b0b8f48-ba98-1367-0a7d-6e01c8df436f.htm>`
for accessing these objects.
The C# driver supports DBRefs using the :api:`MongoDBRef <csharp/current/html/46c356d3-ed06-a6f8-42fa-e0909ab64ce2.htm>` class
and the :api:`FetchDBRef <csharp/current/html/1b0b8f48-ba98-1367-0a7d-6e01c8df436f.htm>` method.

**Haskell**
The Haskell driver contains no support for DBRefs. You can traverse
references manually.

**Java**
The :api:`DBRef <java/current/com/mongodb/DBRef.html>` class
provides supports for DBRefs from Java.
provides support for DBRefs from Java.

**JavaScript**
The :program:`mongo` shell's :doc:`JavaScript </reference/method>`
interface provides a DBRef.

**Node.js**
The Node.js driver supports DBRefs using the
`DBRef <http://mongodb.github.io/node-mongodb-native/api-bson-generated/db_ref.html>`_ class and the `dereference <http://mongodb.github.io/node-mongodb-native/api-generated/db.html#dereference>`_ method.

**Perl**
The Perl driver contains no support for DBRefs. You can transverse
The Perl driver contains no support for DBRefs. You can traverse
references manually or use the `MongoDBx::AutoDeref
<http://search.cpan.org/dist/MongoDBx-AutoDeref/>`_ CPAN module.

**PHP**
The PHP driver supports DBRefs, including the optional ``$db`` reference, through
`The MongoDBRef class <http://www.php.net/manual/en/class.mongodbref.php/>`_.
The PHP driver supports DBRefs, including the optional ``$db`` reference, using
`the MongoDBRef <http://www.php.net/manual/en/class.mongodbref.php/>`_ class.

**Python**
The Python driver provides the :api:`DBRef class <python/current/api/bson/dbref.html>`,
and the :api:`dereference method </python/current/api/pymongo/database.html#pymongo.database.Database.dereference>`
for interacting with DBRefs.
The Python driver supports DBRefs using the :api:`DBRef <python/current/api/bson/dbref.html>` class and the :api:`dereference </python/current/api/pymongo/database.html#pymongo.database.Database.dereference>` method.

**Ruby**
The Ruby Driver supports DBRefs using the :api:`DBRef class </ruby/current/BSON/DBRef.html>`
and the :api:`deference method </ruby/current/Mongo/DB.html#dereference-instance_method>`.
The Ruby driver supports DBRefs using the :api:`DBRef </ruby/current/BSON/DBRef.html>` class
and the :api:`dereference </ruby/current/Mongo/DB.html#dereference-instance_method>` method.

**Scala**
The Scala driver contains no support for DBRefs. You can traverse
references manually.

Use
~~~
Expand Down