From 6a1939b04b50c3657a3144fab3a60d95efc46dcc Mon Sep 17 00:00:00 2001 From: Fanis Tharropoulos Date: Wed, 17 Jul 2024 10:40:47 +0300 Subject: [PATCH] fix(delete-query): pass query params to api call --- src/Typesense/Document.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Typesense/Document.ts b/src/Typesense/Document.ts index dc98c102..684fc6f4 100644 --- a/src/Typesense/Document.ts +++ b/src/Typesense/Document.ts @@ -1,6 +1,7 @@ import ApiCall from "./ApiCall"; import Collections from "./Collections"; import Documents, { + DeleteQuery, DocumentSchema, DocumentWriteParameters, } from "./Documents"; @@ -16,8 +17,8 @@ export class Document { return this.apiCall.get(this.endpointPath()); } - async delete(): Promise { - return this.apiCall.delete(this.endpointPath()); + async delete(options?: DeleteQuery): Promise { + return this.apiCall.delete(this.endpointPath(), options); } async update(