diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/db/query/sort_pattern.h | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/db/query/sort_pattern.h')
| -rw-r--r-- | src/mongo/db/query/sort_pattern.h | 4 |
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. |
