Skip to content

Commit

Permalink
refactor: use Filter terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
nbbeeken committed May 10, 2021
1 parent 7f5340d commit 2136bdf
Show file tree
Hide file tree
Showing 7 changed files with 476 additions and 379 deletions.
594 changes: 340 additions & 254 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/bulk/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type { Collection } from '../collection';
import type { Topology } from '../sdam/topology';
import type { CommandOperationOptions, CollationOptions } from '../operations/command';
import type { Hint } from '../operations/operation';
import type { Query } from '../mongo_types';
import type { Filter } from '../mongo_types';

/** @public */
export const BatchType = {
Expand All @@ -40,7 +40,7 @@ export interface InsertOneModel<TSchema> {
/** @public */
export interface DeleteOneModel<TSchema> {
/** The filter to limit the deleted documents. */
filter: Query<TSchema>;
filter: Filter<TSchema>;
/** Specifies a collation. */
collation?: CollationOptions;
/** The index to use. If specified, then the query system will only consider plans using the hinted index. */
Expand All @@ -50,7 +50,7 @@ export interface DeleteOneModel<TSchema> {
/** @public */
export interface DeleteManyModel<TSchema> {
/** The filter to limit the deleted documents. */
filter: Query<TSchema>;
filter: Filter<TSchema>;
/** Specifies a collation. */
collation?: CollationOptions;
/** The index to use. If specified, then the query system will only consider plans using the hinted index. */
Expand All @@ -60,7 +60,7 @@ export interface DeleteManyModel<TSchema> {
/** @public */
export interface ReplaceOneModel<TSchema> {
/** The filter to limit the replaced document. */
filter: Query<TSchema>;
filter: Filter<TSchema>;
/** The document with which to replace the matched document. */
replacement: TSchema;
/** Specifies a collation. */
Expand Down
Loading

0 comments on commit 2136bdf

Please sign in to comment.