-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
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.