I have been searching for a technique to use Azure Functions to delete items in a Cosmos database, using the in-browser code editor. Theres various reasons on my side why I dont want to use locally-developed code on VS.
The code I am using is available here : [https://pastebin.com/Xr8t4X0X], I am using a HttpTrigger with a CosmosDB input and output binding. They are named fairly obviously (inputDocument, outputDocument).
This code is working amazingly for reading items from the db, and writing new documents, however I want to be able to delete a single item. I'm making an 'auction house' system, and to 'buy' an item, I need to remove it from the db.
I have searched a fair few places now, many people say to use DocumentDB / DocumentClient. I originally tried this with Microsoft.Azure.Documents.Client, however v3.x needed this to be changed to Microsoft.Azure.Documents.Core. This compiles correctly, however I am unable to find documentation on the use of .Core, even the links on its documentation reference to .Client.
Thanks.