update cosmos db document with new values c#

class Program { static void Main(string[] args) { NewMethod().Wait(); } private static async Task NewMethod() { try { var client = new DocumentClient(new Uri(“uri”), “key”); //Fetch the Document to be updated var doc = client.CreateDocumentQuery<RootObject>(UriFactory.CreateDocumentCollectionUri(“Db-dev”, “collection”)) .Where(t => t.id == “id”).AsEnumerable() .FirstOrDefault(); List<string> ok = new List<string>() { “d1”, “d2” }; doc.DevicesList.AddRange(ok); //update document var… Read More update cosmos db document with new values c#