-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Query Integration
-
None
-
None
-
None
-
None
-
None
-
None
-
None
To avoid having to implement an identical `clone()` on every test implementation of AstNode and ParseNode, we should add a curiously-recursive templating pattern (CRTP) to the SDK for these classes.
SERVER-115503 has an example of how to do this for `LiteParsedDocumentSource`.
https://github.com/10gen/mongo/pull/45657#discussion_r2658387022
- is related to
-
SERVER-115503 Add clone() to LiteParsedPipeline and LiteParsedDocumentSource
-
- Closed
-