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

Type safe command responses

    • Type: Icon: Epic Epic
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Operations Layer
    • To Do
    • Type Safe Command Responses
    • 0
    • 0
    • 0
    • 100

      Summary

      On-Demand BSON introduced runtime and compile-time type-safe command responses to the Node driver.  However, on-demand BSON only added type safety for cursor responses.

      Type safety should be extended to all commands executed against the server.

      Motivation

      Who is the affected end user?

      Node driver engineers.

      How does this affect the end user?

      Node driver engineers live in a world where 

      1. most of our server commands have no type safety at runtime or compile time.
      2. some operations have runtime and compile-time safety, others do not. 

      This leads to extra logic to the legacy model (no type safety at all) and the new model (runtime + compile time safety).  Additionally, while the command layer supports additional runtime and compile time safety checks, these are not being taken utilized in the majority of the driver.

       

      How likely is it that this problem or use case will occur?

      n/a.

      If the problem does occur, what are the consequences and how severe are they?

      n/a.

      Is this issue urgent?

      no, but nice to do soon.

      Is this ticket required by a downstream team?

      n/a.

      Is this ticket only for tests?

      no.

      Cast of Characters

      Engineering Lead:
      Document Author:
      POCers:
      Product Owner:
      Program Manager:
      Stakeholders:

      Channels & Docs

      Slack Channel

      [Scope Document|some.url]

      [Technical Design Document|some.url]

            Assignee:
            Unassigned Unassigned
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: