Bulk Delete API fix (#1977)
* Bulk Delete API fix * Bulk Delete API fix --------- Co-authored-by: Asier Isayas <aisayas@microsoft.com>
This commit is contained in:
parent
cbcb7e6240
commit
fae4589427
|
@ -561,7 +561,10 @@ export function deleteDocuments(
|
|||
const { databaseAccount } = userContext;
|
||||
const resourceEndpoint = databaseAccount.properties.mongoEndpoint || databaseAccount.properties.documentEndpoint;
|
||||
|
||||
const rids = documentIds.map((documentId) => documentId.id());
|
||||
const rids: string[] = documentIds.map((documentId) => {
|
||||
const idComponents = documentId.self.split("/");
|
||||
return idComponents[5];
|
||||
});
|
||||
|
||||
const params = {
|
||||
databaseID: databaseId,
|
||||
|
|
|
@ -115,7 +115,7 @@ let configContext: Readonly<ConfigContext> = {
|
|||
"deleteDocument",
|
||||
"createCollectionWithProxy",
|
||||
"legacyMongoShell",
|
||||
// "bulkdelete",
|
||||
"bulkdelete",
|
||||
],
|
||||
CASSANDRA_PROXY_ENDPOINT: CassandraProxyEndpoints.Prod,
|
||||
NEW_CASSANDRA_APIS: ["postQuery", "createOrDelete", "getKeys", "getSchema"],
|
||||
|
|
Loading…
Reference in New Issue