diff options
author | Yoonsoo Kim <yoonsoo.kim@mongodb.com> | 2021-07-20 11:07:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-20 11:47:23 +0000 |
commit | 14a176dd6a3359266ac0bb79725b7cb13b7c214d (patch) | |
tree | b43751dd9508f34f15c5fc54a15d9dfd2ddc4f03 /src/mongo/shell/mongo.js | |
parent | d587a23122d5e64a828eb182bbe3f311541d89a2 (diff) | |
download | mongo-14a176dd6a3359266ac0bb79725b7cb13b7c214d.tar.gz |
Revert "SERVER-58566 Clean up remaining OP_QUERY code" due to a wrong author info
This reverts commit 3b293a78b0e24c5497464c3979daddfa0792bb55.
Diffstat (limited to 'src/mongo/shell/mongo.js')
-rw-r--r-- | src/mongo/shell/mongo.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/shell/mongo.js b/src/mongo/shell/mongo.js index 7146fd8670a..cf05337eead 100644 --- a/src/mongo/shell/mongo.js +++ b/src/mongo/shell/mongo.js @@ -418,6 +418,11 @@ connect = function(url, user, pass, apiParameters) { return db; }; +Mongo.prototype.hasExplainCommand = function() { + var hasExplain = (this.getMinWireVersion() <= 3 && 3 <= this.getMaxWireVersion()); + return hasExplain; +}; + // // Write Concern can be set at the connection level, and is used for all write operations unless // overridden at the collection level. |