Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-4340

Add support for server side expression as argument for $documents stage

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Builders, LINQ3
    • None

      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.

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: