Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-189

Upgrade options package to use bson.Document

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.0.1
    • Affects Version/s: None
    • Component/s: None
    • None

      Add the following interfaces:

      type Optioner interface {
        Option(*bson.Document)
      }
      

      Create specific Optioner types for Aggregate, Count, Delete, Distinct, Find, Insert, and Update.

      For instance:

      type AggregateOptioner interface {
        Optioner
        aggregateOption()
      }
      

      Reimplement the types in the option package to use this updated style and update the mongo package to use these as well.

            Assignee:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: