diff options
author | James Wahlin <james@mongodb.com> | 2022-02-23 13:19:05 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-03-12 16:32:57 +0000 |
commit | 1ca10441ee35fcea2a88a0c522fa0890017f5fbd (patch) | |
tree | 8353e21df82b4ee7a982b2adc3a2b88b0191e386 /src/mongo/db/commands/count_cmd.cpp | |
parent | 192a3ed8882a450b473dc6668cd92cb798706164 (diff) | |
download | mongo-1ca10441ee35fcea2a88a0c522fa0890017f5fbd.tar.gz |
SERVER-63850 Add the count command to API version 1
Diffstat (limited to 'src/mongo/db/commands/count_cmd.cpp')
-rw-r--r-- | src/mongo/db/commands/count_cmd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/commands/count_cmd.cpp b/src/mongo/db/commands/count_cmd.cpp index 5c29dbea68b..44d00d4dcb2 100644 --- a/src/mongo/db/commands/count_cmd.cpp +++ b/src/mongo/db/commands/count_cmd.cpp @@ -68,6 +68,10 @@ class CmdCount : public BasicCommand { public: CmdCount() : BasicCommand("count") {} + const std::set<std::string>& apiVersions() const { + return kApiVersions1; + } + std::string help() const override { return "count objects in collection"; } |