feat: Add support for MongoDB query comment (#8928)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user