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

Change pattern for setting BSON options in the driver

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

      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 Unassigned
            Reporter:
            warren.james@mongodb.com Warren James
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: