Add an overload to Update that takes a pipeline argument

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: CRUD
    • None
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      You can update a document with calculated values using a pipeline like this:

      var pipeline = new EmptyPipelineDefinition<C>().Set(x => new { A = x.B });
      var result = collection.UpdateMany("{}", pipeline);

      But this is not easily discoverable in Intellisense because it depends on the existence of an implicit conversion from PipelineDefinition to UpdateDefinition.

      We should add overload(s) to Update that take a PipelineDefinition argument.

      This will probably require removing the implicit conversion to avoid ambiguity between overloads, and therefore would be a small breaking change.

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

                Created:
                Updated: