Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2013

Make `autoEncrypter` more easily accessible to internal consumers

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • next
    • Affects Version/s: None
    • Component/s: None
    • None

      Currently the AutoEncrypter is stored in the topology options, which is cloned to individual Server instances. This makes access somewhat cumbersome in the wire protocol methods, leading to checks like:

      server && server.s && server.s.options && server.s.options.autoEncrypter;
      

      We can follow patterns we use for e.g. Collection.readConcern to make this more readable.

            Assignee:
            rosemary.yin@mongodb.com Rosemary Yin (Inactive)
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: