Introduce wire protocol method `query`

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.1.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • 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
            Reporter:
            Matt Broadstone
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: