Skip to content

Commit 6a1939b

Browse files
committed
fix(delete-query): pass query params to api call
1 parent 2d6c148 commit 6a1939b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Typesense/Document.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import ApiCall from "./ApiCall";
22
import Collections from "./Collections";
33
import Documents, {
4+
DeleteQuery,
45
DocumentSchema,
56
DocumentWriteParameters,
67
} from "./Documents";
@@ -16,8 +17,8 @@ export class Document<T extends DocumentSchema = object> {
1617
return this.apiCall.get<T>(this.endpointPath());
1718
}
1819

19-
async delete(): Promise<T> {
20-
return this.apiCall.delete<T>(this.endpointPath());
20+
async delete(options?: DeleteQuery): Promise<T> {
21+
return this.apiCall.delete<T>(this.endpointPath(), options);
2122
}
2223

2324
async update(

0 commit comments

Comments
 (0)