Skip to content

Instantly share code, notes, and snippets.

@johndowns
Created January 21, 2018 20:51
Show Gist options
  • Save johndowns/08d1f5571942e2dc5a4e3ddfdc44c9fd to your computer and use it in GitHub Desktop.
Save johndowns/08d1f5571942e2dc5a4e3ddfdc44c9fd to your computer and use it in GitHub Desktop.
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