We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d6c148 commit 6a1939bCopy full SHA for 6a1939b
src/Typesense/Document.ts
@@ -1,6 +1,7 @@
1
import ApiCall from "./ApiCall";
2
import Collections from "./Collections";
3
import Documents, {
4
+ DeleteQuery,
5
DocumentSchema,
6
DocumentWriteParameters,
7
} from "./Documents";
@@ -16,8 +17,8 @@ export class Document<T extends DocumentSchema = object> {
16
17
return this.apiCall.get<T>(this.endpointPath());
18
}
19
- async delete(): Promise<T> {
20
- return this.apiCall.delete<T>(this.endpointPath());
+ async delete(options?: DeleteQuery): Promise<T> {
21
+ return this.apiCall.delete<T>(this.endpointPath(), options);
22
23
24
async update(
0 commit comments