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

@@ -19,6 +19,10 @@ export class AggregateRouter extends ClassesRouter {
options.explain = body.explain;
delete body.explain;
}
if (body.comment) {
options.comment = body.comment;
delete body.comment;
}
if (body.readPreference) {
options.readPreference = body.readPreference;
delete body.readPreference;