I'm following this example. https://learn.microsoft.com/en-us/azure/azure-functions/functions-integrate-store-unstructured-data-cosmosdb
Instead of using C# as in the example, I want to use JavaScript. But I'm trying to figure out how this part is written in JS.
taskDocument = new {
name = name,
duedate = duedate.ToString(),
task = task
};
I tried the above, and below, but both threw an exception.
taskDocument = new {
name: name,
duedate: duedate,
task: task
};
Guess it is a simple task for those who know how it works.