Add public API for Mongo._uri field

XMLWordPrintableJSON

    • 1
    • Iteration Turtle
    • Needed
    • Hide

      The underlying work introduces a publicly accessible method `getURI` on connection object - Mongo. `Mongo.getURI()` will return the connection string for the current active connection.

      Example Usage:

      • `db.getMongo().getURI()`
      • `new Mongo().getURI()`
      Show
      The underlying work introduces a publicly accessible method `getURI` on connection object - Mongo. `Mongo.getURI()` will return the connection string for the current active connection. Example Usage: `db.getMongo().getURI()` `new Mongo().getURI()`

      Making the URI for a Mongo instance programmatically accessible would help with creating new Mongo instances based on it. It should be enough to expose the `_uri` field in a more public manner (e.g. `mongo.getURI()` or `mongo.uri`).

            Assignee:
            Himanshu Singh
            Reporter:
            Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: