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

Add new overload of Set that allows adding new fields as well as setting existing fields

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: 3.3.0
    • Component/s: Builders, LINQ
    • None
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      The Set method in IAggregateFluent and PipelineDefinitionBuilder currently only handles setting existing fields to new values.

      That is because the input type and the output type of the stage are both `TResult`.

      New overloads that support a result of `TNewResult` different than the input `TResult` is needed.

      The design of the existing and any new API for Set should be carefully examined before any new public API is committed to.

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

              Created:
              Updated: