Skip to content

Commit 2136bdf

Browse files
committed
refactor: use Filter terminology
1 parent 7f5340d commit 2136bdf

File tree

7 files changed

+476
-379
lines changed

7 files changed

+476
-379
lines changed

package-lock.json

+340-254
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bulk/common.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type { Collection } from '../collection';
1919
import type { Topology } from '../sdam/topology';
2020
import type { CommandOperationOptions, CollationOptions } from '../operations/command';
2121
import type { Hint } from '../operations/operation';
22-
import type { Query } from '../mongo_types';
22+
import type { Filter } from '../mongo_types';
2323

2424
/** @public */
2525
export const BatchType = {
@@ -40,7 +40,7 @@ export interface InsertOneModel<TSchema> {
4040
/** @public */
4141
export interface DeleteOneModel<TSchema> {
4242
/** The filter to limit the deleted documents. */
43-
filter: Query<TSchema>;
43+
filter: Filter<TSchema>;
4444
/** Specifies a collation. */
4545
collation?: CollationOptions;
4646
/** The index to use. If specified, then the query system will only consider plans using the hinted index. */
@@ -50,7 +50,7 @@ export interface DeleteOneModel<TSchema> {
5050
/** @public */
5151
export interface DeleteManyModel<TSchema> {
5252
/** The filter to limit the deleted documents. */
53-
filter: Query<TSchema>;
53+
filter: Filter<TSchema>;
5454
/** Specifies a collation. */
5555
collation?: CollationOptions;
5656
/** The index to use. If specified, then the query system will only consider plans using the hinted index. */
@@ -60,7 +60,7 @@ export interface DeleteManyModel<TSchema> {
6060
/** @public */
6161
export interface ReplaceOneModel<TSchema> {
6262
/** The filter to limit the replaced document. */
63-
filter: Query<TSchema>;
63+
filter: Filter<TSchema>;
6464
/** The document with which to replace the matched document. */
6565
replacement: TSchema;
6666
/** Specifies a collation. */

0 commit comments

Comments
 (0)