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

How to update document field with another field

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Builders
    • Labels:
      None

      Currently I can use UpdateBuilder to update document,but  how can I tell it use value of field B o update field A?

       

      // code placeholder
      
      var builder = Builders<T>.Update; 
      //Seems builder.Set("A","$B");
      // will update value of field 'A' to be '$B', but not the value of field B

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            fomanlion@gmail.com yongxing Liang
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: