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

Introduce wire protocol method `query`

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

      The WireProtocol.prototype.command has a hack to introspect the incoming command, determine if it is a find command, and switch its internal logic if so. We shouldn't have to introspect here, we can simply call a different command when we are attempting a query. Additionally, this will allow us to defer checking whether commands are supported when executing a query, switching between a plain legacy OP_QUERY and a modern, "commandified" OP_QUERY against the $cmd collection.
       

            Assignee:
            matt.broadstone@mongodb.com Matt Broadstone
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: