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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • Builders, LINQ3
    • None

    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.

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: