You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From the docs here, deleteDocument takes only _self link of the document as the mandatory parameter. But when the query is run against a partitioned collection, cosmosdb throws the following error:
{"errors":["The partition key supplied in x-ms-partitionkey header has fewer components than defined in the the collection."]}
As suggested by this SO answer, passing partition key via options object as below works.
This also makes it impossible to delete documents that were saved without a partition key. Also the PartitionKey(Undefined.value) seems to be missing from the node sdk.
From the docs here,
deleteDocument
takes only_self
link of the document as the mandatory parameter. But when the query is run against a partitioned collection, cosmosdb throws the following error:As suggested by this SO answer, passing partition key via options object as below works.
The text was updated successfully, but these errors were encountered: