* added hint to aggregate * added support for hint in query * added else clause to aggregate * fixed tests * updated tests * Add tests and clean up * Add support for explain Co-authored-by: Diamond Lewis <findlewis@gmail.com>
This commit is contained in:
committed by
Diamond Lewis
parent
5a1d94ed88
commit
9842c6ee42
@@ -499,6 +499,10 @@ export function maybeRunQueryTrigger(
|
||||
restOptions = restOptions || {};
|
||||
restOptions.excludeKeys = jsonQuery.excludeKeys;
|
||||
}
|
||||
if (jsonQuery.explain) {
|
||||
restOptions = restOptions || {};
|
||||
restOptions.explain = jsonQuery.explain;
|
||||
}
|
||||
if (jsonQuery.keys) {
|
||||
restOptions = restOptions || {};
|
||||
restOptions.keys = jsonQuery.keys;
|
||||
@@ -507,6 +511,10 @@ export function maybeRunQueryTrigger(
|
||||
restOptions = restOptions || {};
|
||||
restOptions.order = jsonQuery.order;
|
||||
}
|
||||
if (jsonQuery.hint) {
|
||||
restOptions = restOptions || {};
|
||||
restOptions.hint = jsonQuery.hint;
|
||||
}
|
||||
if (requestObject.readPreference) {
|
||||
restOptions = restOptions || {};
|
||||
restOptions.readPreference = requestObject.readPreference;
|
||||
|
||||
Reference in New Issue
Block a user