Skip to content

Commit 9b105e8

Browse files
fix: remove comment from DeleteStatement
1 parent e9e9c75 commit 9b105e8

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/operations/delete.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,6 @@ export interface DeleteStatement {
5050
collation?: CollationOptions;
5151
/** A document or string that specifies the index to use to support the query predicate. */
5252
hint?: Hint;
53-
/**
54-
* Comment to apply to the operation.
55-
*
56-
* In server versions pre-4.4, 'comment' must be string. A server
57-
* error will be thrown if any other type is provided.
58-
*
59-
* In server versions 4.4 and above, 'comment' can be any valid BSON type.
60-
*/
61-
comment?: any;
6253
}
6354

6455
/** @internal */

src/operations/insert.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ export class InsertOperation extends CommandOperation<Document> {
4141
command.bypassDocumentValidation = options.bypassDocumentValidation;
4242
}
4343

44-
if (options.comment != null) {
44+
// eslint-disable-next-line no-restricted-syntax
45+
if (options.comment !== undefined) {
4546
command.comment = options.comment;
4647
}
4748

0 commit comments

Comments
 (0)