Skip to content

Commit 6b36379

Browse files
authored
feat: add withCustomFilter method to Query.ts
1 parent 00a9e84 commit 6b36379

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/query.ts

+5
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ export class QueryBuilder<D extends Document> {
166166
return this;
167167
}
168168

169+
public withCustomFilter(query: Query[]): QueryBuilder<D> {
170+
this.searchParams.filter.push(query);
171+
return this;
172+
}
173+
169174
public withSortBy(field: string, direction: "asc" | "desc"): QueryBuilder<D> {
170175
this.searchParams.rerank.push({ [field]: { order: direction } });
171176
return this;

0 commit comments

Comments
 (0)