Add support for "recordId" "indexKey" and "sortKey" in ExpressionMeta.
Like other meta types, the expression should returning "missing" if the associated metadata cannot be found on the Document.
This ticket will also involve modifying Document and DocumentMetadataFields. The main purpose of this work is to make ExpressionMeta supercede find() $meta.
Note that the work of figuring out how to pass metadata between the PlanStage and DocumentSource layer is tracked by SERVER-42560. This ticket is just about making $meta able to parse the new metadata options and retrieve them from a Document. Until we support expressions in find() projection, the change will not actually have any "visible" effects.
- depends on
-
SERVER-42288 Consolidate implementations of Document metadata and WorkingSetComputedData
- Closed
- is depended on by
-
DRIVERS-740 Support new $meta expressions in MongoDB 4.4
- Closed
-
SERVER-42560 Handle passing of metadata between PlanStage and DocumentSource layers
- Closed
- is related to
-
RUBY-1941 Investigate changes in SERVER-42418: Allow ExpressionMeta to parse find() $meta options
- Closed