diff --git a/src/operations/delete.ts b/src/operations/delete.ts index 0ce9d871deb..a9bc3c66250 100644 --- a/src/operations/delete.ts +++ b/src/operations/delete.ts @@ -85,7 +85,8 @@ export class DeleteOperation extends CommandOperation { const unacknowledgedWrite = this.writeConcern && this.writeConcern.w === 0; if (unacknowledgedWrite) { if (this.statements.find((o: Document) => o.hint)) { - callback(new MongoCompatibilityError(`Servers < 3.4 do not support hint on delete`)); + // TODO(NODE-3541): fix error for hint with unacknowledged writes + callback(new MongoCompatibilityError(`hint is not supported with unacknowledged writes`)); return; } } diff --git a/src/operations/update.ts b/src/operations/update.ts index 8dd1de3bb72..278a0b34b25 100644 --- a/src/operations/update.ts +++ b/src/operations/update.ts @@ -110,7 +110,8 @@ export class UpdateOperation extends CommandOperation { const unacknowledgedWrite = this.writeConcern && this.writeConcern.w === 0; if (unacknowledgedWrite) { if (this.statements.find((o: Document) => o.hint)) { - callback(new MongoCompatibilityError(`Servers < 3.4 do not support hint on update`)); + // TODO(NODE-3541): fix error for hint with unacknowledged writes + callback(new MongoCompatibilityError(`hint is not supported with unacknowledged writes`)); return; } }