Change pattern for setting BSON options in the driver

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Performance
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a driver engineer
      I want to change how BSON options are set
      So that we avoid unnecessary checks

      Description

      When setting BSONSerialization options, the driver calls resolveBSON options
      which ensures that all bson options have set values. As such, in src/cmap/commands.ts and src/cmap/connection.ts.

      Acceptance Criteria

      Implementation requirements

      • Update src/cmap/commands.ts
      • Update src/cmap/connection.ts

      to not check the type of options.useBigInt64 when they are setting their bson options.

      Testing requirements

      Ensure that all previous tests pass

              Assignee:
              Unassigned
              Reporter:
              Warren James (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: