Manipulating data with Core (SQL) API
The most common API for working with data in Azure Cosmos DB is Core (SQL).
The full documentation for Core (SQL) API can be found at the following link: https://docs.microsoft.com/en-us/azure/cosmos-db/sql/.
Performing CRUD operations with Cosmos SQL API
You can perform CRUD operations on JSON documents in Cosmos with SQL API by calling the following most common overloads of methods on an instance of the Microsoft.Azure.Cosmos.Container class:
ReadItemAsync<T>(id, partitionKey): WhereTis the item type to get,idis its unique identifier, andpartitionKeyis its partition key value.ReadManyItemsAsync<T>(idsAndPartitionKeys): WhereTis the item type to get, andidsAndPartitionKeysare the unique identifiers and partition key values of a read-only list of items to retrieve.CreateItemAsync(object): Whereobjectis an instance of the item type to insert.DeleteItemAsync<T>...