Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1009

Consider supporting JSON based MongoClient configuration

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.9.1
    • Configuration
    • None

    Description

      Our current mechanisms for configuring a MongoClient are:

      1. Use a "mongodb://..." style URL
      2. Configure a MongoClientSettings object in code

      It would be useful to support a JSON based configuration option, where a JSON document could be used to supply the values for the MongoClientSettings.

      This could have a number of interesting benefits:

      1. It could represent nested values better than a linear URL can
      2. Configurations could be built up by merging partial JSON documents that each contain part of the configuration
      3. Configurations could be stored in MongoDB

      Implementing this feature should be dependent on all drivers agreeing on the format of the JSON configuration document so that configurations can be shared across drivers.

      Attachments

        Activity

          People

            Unassigned Unassigned
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: