File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,6 @@ export interface DeleteStatement {
50
50
collation ?: CollationOptions ;
51
51
/** A document or string that specifies the index to use to support the query predicate. */
52
52
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 ;
62
53
}
63
54
64
55
/** @internal */
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ export class InsertOperation extends CommandOperation<Document> {
41
41
command . bypassDocumentValidation = options . bypassDocumentValidation ;
42
42
}
43
43
44
- if ( options . comment != null ) {
44
+ // eslint-disable-next-line no-restricted-syntax
45
+ if ( options . comment !== undefined ) {
45
46
command . comment = options . comment ;
46
47
}
47
48
You can’t perform that action at this time.
0 commit comments