feat: Add support for MongoDB query comment (#8928)

This commit is contained in:
Oussama Meglali
2024-03-03 02:27:57 +01:00
committed by GitHub
parent afcafdba1e
commit 2170962a50
9 changed files with 173 additions and 12 deletions

View File

@@ -576,6 +576,10 @@ export function maybeRunQueryTrigger(
restOptions = restOptions || {};
restOptions.hint = jsonQuery.hint;
}
if (jsonQuery.comment) {
restOptions = restOptions || {};
restOptions.comment = jsonQuery.comment;
}
if (requestObject.readPreference) {
restOptions = restOptions || {};
restOptions.readPreference = requestObject.readPreference;