summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/sort_pattern.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/query/sort_pattern.h')
-rw-r--r--src/mongo/db/query/sort_pattern.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/query/sort_pattern.h b/src/mongo/db/query/sort_pattern.h
index b659ed0124e..c709a43eac8 100644
--- a/src/mongo/db/query/sort_pattern.h
+++ b/src/mongo/db/query/sort_pattern.h
@@ -33,6 +33,7 @@
#include "mongo/db/exec/document_value/document.h"
#include "mongo/db/pipeline/document_path_support.h"
#include "mongo/db/pipeline/expression.h"
+#include "mongo/db/query/query_shape/serialization_options.h"
namespace mongo {
class SortPattern {
@@ -72,7 +73,8 @@ public:
/**
* Write out a Document whose contents are the sort key pattern.
*/
- Document serialize(SortKeySerialization) const;
+ Document serialize(SortKeySerialization serializationMode,
+ const SerializationOptions& options = {}) const;
/**
* Serializes the document to BSON, only keeping the paths specified in the sort pattern.