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

As a developer, I would like to know the mongo version, so I can enable specific feature paths if available.

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.4.0, 1.3.7
    • Component/s: API
    • None

      I would like an API that exposes the mongoDB version being worked with.
      Currently, (as far as I know) there is no way to obtain the connected mongo version.

      For example, for critical paths that require atomicity I would like the application to be able to know what version of mongo we are connected to so I can use the transaction API, or fall back to primary preferred, majority write.

      I started hacking away with the transactions API which unexpectedly failed miserably with a mongo serialization error on Mongo 3.6. Coming from the mgo driver, which has a transaction API, I inadvertently expected the mongo-driver API to also work for 3.6.

       

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            matt.hartstonge@gmail.com Matt Hartstonge
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: