fix(elasticsearch): preserve legacy type on delete
This commit is contained in:
9 files changed
+85
-42
No files matched your search
@@ -3130,13 +3130,14 @@ export async function mongoDeleteDocument(connectionId: string, database: string
|
||||
return documentDeleteDocument(connectionId, database, collection, id, routing);
|
||||
}
|
||||
|
||||
export async function documentDeleteDocument(connectionId: string, database: string, collection: string, id: string, routing?: string): Promise<number> {
|
||||
export async function documentDeleteDocument(connectionId: string, database: string, collection: string, id: string, routing?: string, documentType?: string): Promise<number> {
|
||||
return post("/api/document-store/delete-document", {
|
||||
connectionId,
|
||||
database,
|
||||
collection,
|
||||
id,
|
||||
routing,
|
||||
documentType,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -3072,13 +3072,14 @@ export async function mongoDeleteDocument(connectionId: string, database: string
|
||||
return documentDeleteDocument(connectionId, database, collection, id, routing);
|
||||
}
|
||||
|
||||
export async function documentDeleteDocument(connectionId: string, database: string, collection: string, id: string, routing?: string): Promise<number> {
|
||||
export async function documentDeleteDocument(connectionId: string, database: string, collection: string, id: string, routing?: string, documentType?: string): Promise<number> {
|
||||
return invoke("document_delete_document", {
|
||||
connectionId,
|
||||
database,
|
||||
collection,
|
||||
id,
|
||||
routing,
|
||||
documentType,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user