Skip to content

Commit

Permalink
fix(delete-query): pass query params to api call
Browse files Browse the repository at this point in the history
  • Loading branch information
tharropoulos committed Jul 17, 2024
1 parent 2d6c148 commit 6a1939b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Typesense/Document.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import ApiCall from "./ApiCall";
import Collections from "./Collections";
import Documents, {
DeleteQuery,
DocumentSchema,
DocumentWriteParameters,
} from "./Documents";
Expand All @@ -16,8 +17,8 @@ export class Document<T extends DocumentSchema = object> {
return this.apiCall.get<T>(this.endpointPath());
}

async delete(): Promise<T> {
return this.apiCall.delete<T>(this.endpointPath());
async delete(options?: DeleteQuery): Promise<T> {
return this.apiCall.delete<T>(this.endpointPath(), options);
}

async update(
Expand Down

0 comments on commit 6a1939b

Please sign in to comment.