From 78e9d461d152f7a41c18259551b12ae3a7465202 Mon Sep 17 00:00:00 2001 From: Jason Giedymin Date: Tue, 16 Dec 2014 13:54:22 -0500 Subject: [PATCH] Update URI docs to include `.collection` information. --- source/reference/connection-string.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/reference/connection-string.txt b/source/reference/connection-string.txt index 880f8b68a12..7c147fd9d2d 100644 --- a/source/reference/connection-string.txt +++ b/source/reference/connection-string.txt @@ -25,7 +25,7 @@ The following is the standard URI connection scheme: .. code-block:: none - mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]] + mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database[.collection]][?options]] The components of this string are: @@ -60,13 +60,14 @@ The components of this string are: Optional. The default value is ``:27017`` if not specified. -#. ``/database`` +#. ``/database[.collection]`` Optional. The name of the database to authenticate if the connection string includes authentication credentials in the form of ``username:password@``. If ``/database`` is not specified and the connection string includes credentials, the driver will - authenticate to the ``admin`` database. + authenticate to the ``admin`` database. The database may also + include the collection name. #. ``?options``