[CSHARP-4340] Add support for server side expression as argument for $documents stage Created: 30/Sep/22  Updated: 03/Oct/22

Status: Backlog
Project: C# Driver
Component/s: Builders, LINQ3
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Robert Stam Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In CSHARP-4220 we added support for specifying the documents for the $documents as either an AggregationExpressionDefinition or as a sequence of documents:

database.Aggregate().Documents(aggregationExpression)
 
// or
 
collection.Aggregate().Documents(sequenceOfDocuments)

We would like to investigate a new overload that would translate a C# Expression to MQL to generate the documents server side.

This might look like this:

database.Aggregate().Documents((NoPipelineInput _) => <expression>)

Where <expression> would be executed server side.

 


Generated at Wed Feb 07 21:47:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.