Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1524

Default MongoCollectionOptions

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.0.0
    • None
    • Async
    • None

    Description

      You should be able to create MongoCollectionOptions with the appropriate default values. In other words

      MongoDatabase db = ...
      db.getCollection("my-col", MongoCollectionOptions.builder().build())

      should be equiv to

      MongoDatabase db = ...
      db.getCollection("my-col");

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            nscavell Nick Scavelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: