Extend API for $set stage and update operator to support adding new fields

XMLWordPrintableJSON

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

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Our current API for $set stage and update operators is oriented towards setting new values for existing fields.

      The API needs to be extended to support adding new fields.

      Because our API is strongly typed this means that the output document from a $set stage needs to be different from the input document. This requires new overloads.

      How to support adding fields with a $set update operator needs to be investigated.

              Assignee:
              Unassigned
              Reporter:
              Robert Stam
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: