You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CSHARP-5769: Implement hasAncestor, hasRoot, and returnScope for Atlas Search
Add hasAncestor and hasRoot search operators for use within embeddedDocument
queries, allowing searches to reference fields at ancestor or root document
levels. Add returnScope support to $search and $searchMeta pipeline stages,
enabling results to be returned from a nested embedded document scope rather
than the root document. Add Clone() to SearchOptions and its nested options
classes to avoid mutating caller-supplied options when returnScope is set.
-`tests/MongoDB.Driver.Tests/Specifications/` are JSON-driven tests using a common runner.
21
+
22
+
## Commands
23
+
- Build: `dotnet build CSharpDriver.sln`
24
+
- Run all tests: `dotnet test tests/MongoDB.Driver.Tests/MongoDB.Driver.Tests.csproj -f net10.0`
25
+
- Run a single test class: `dotnet test tests/MongoDB.Driver.Tests/MongoDB.Driver.Tests.csproj -f net10.0 --filter "FullyQualifiedName~ClassName"`
26
+
27
+
A MongoDB connection is always available locally, so "integration" tests can be run as well as unit tests. Some test suites also require additional environment variables — if you need to run those tests and the variables are not set, stop and tell the user which variables are needed rather than working around it.
$"The search output type '{typeof(TOutput).Name}' must be the same as the input type '{typeof(TInput).Name}' when 'returnScope' is not specified. Use the overload that specifies 'returnScope' to return documents of a nested collection type.");
0 commit comments