summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/projection_ast_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/projection_ast_util.h')
-rw-r--r--src/mongo/db/query/projection_ast_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/query/projection_ast_util.h b/src/mongo/db/query/projection_ast_util.h
index af89254a9a1..895340104ad 100644
--- a/src/mongo/db/query/projection_ast_util.h
+++ b/src/mongo/db/query/projection_ast_util.h
@@ -29,6 +29,7 @@
#pragma once
+#include "mongo/db/query/projection.h"
#include "mongo/db/query/projection_ast.h"
namespace mongo {
@@ -37,5 +38,7 @@ namespace projection_ast {
* This is intended to be used for debug output, not for serialization.
*/
BSONObj astToDebugBSON(const ASTNode* root);
+
+BSONObj serialize(const Projection& ast, SerializationOptions options);
} // namespace projection_ast
} // namespace mongo