PowerShell Module for working with Azure Cosmos DB databases, collections, documents, attachments, offers, users, permissions, triggers, stored procedures and user defined functions.
First of all thank you for this usefull module !!! It would be great to add these two functionalities :
This one let us to send a partial update for a document with a PATCH operation, the json input must be like this :
$operations = @{operations = [System.Collections.ArrayList]@() }
$update = [PSCustomObject]@{
op = "replace" (there are more possible operations )
path = "/parent/$index/child"
value = @($values)
};
And check that the number of operations is -le 10 (cosmos limite for a simple document update)
I don't have any time to make it by myself so if someone want to do it ... This code is working I use it on my project but make the entire implentation in the module is too long for me at this moment.
Feature
Hello,
First of all thank you for this usefull module !!! It would be great to add these two functionalities :
This one let us to send a partial update for a document with a PATCH operation, the json input must be like this :
And check that the number of operations is -le 10 (cosmos limite for a simple document update)
And this one return ALL the document, I found that the "standard" Get-CosmosDbDocument doesn't return all results :
I don't have any time to make it by myself so if someone want to do it ... This code is working I use it on my project but make the entire implentation in the module is too long for me at this moment.
Thanks
Ben