From 1ca10441ee35fcea2a88a0c522fa0890017f5fbd Mon Sep 17 00:00:00 2001 From: James Wahlin Date: Wed, 23 Feb 2022 13:19:05 -0500 Subject: SERVER-63850 Add the count command to API version 1 --- src/mongo/db/commands/count_cmd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mongo/db/commands/count_cmd.cpp') 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& apiVersions() const { + return kApiVersions1; + } + std::string help() const override { return "count objects in collection"; } -- cgit v1.2.1