1

If I have an Azure Cosmos database with the following setup

Database name: MyDatabase

Collection: MyCollection

How would I use UriFactory to create a document link to use in CreateDocumentAsync(documentLink, document)?

I had a look at the Microsoft documentation here but this seems to use a document id to delete the document, I want to create a document instead.

DarkW1nter
  • 2,933
  • 11
  • 67
  • 120

1 Answers1

4

Uri myUri = UriFactory.CreateDocumentCollectionUri("MyDatabase", "MyCollection");

DarkW1nter
  • 2,933
  • 11
  • 67
  • 120