Skip to content

Instantly share code, notes, and snippets.

@johndowns
Created January 21, 2018 20:51
var documentClient = new DocumentClient(new Uri("https://youraccount.documents.azure.com:443/"), "yourkey");
var collectionLink = UriFactory.CreateDocumentCollectionUri("Orders", "Orders");
var result = await documentClient.CreateDocumentAsync(collectionLink, documentToInsert, new RequestOptions
{
PreTriggerInclude = new List<string> { "validateOrder" },
PostTriggerInclude = new List<string> { "addRefund" }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment