5 denied.distinct = function (self) {
6 if (self._fields && Object.keys(self._fields).length > 0) {
7 return 'field selection and slice'
10 var keys = Object.keys(denied.distinct);
13 keys.every(function (option) {
14 if (self.options[option]) {
23 denied.distinct.select =
24 denied.distinct.slice =
25 denied.distinct.sort =
26 denied.distinct.limit =
27 denied.distinct.skip =
28 denied.distinct.batchSize =
29 denied.distinct.comment =
30 denied.distinct.maxScan =
31 denied.distinct.snapshot =
32 denied.distinct.hint =
33 denied.distinct.tailable = true;
36 // aggregation integration
39 denied.findOneAndUpdate =
40 denied.findOneAndRemove = function (self) {
41 var keys = Object.keys(denied.findOneAndUpdate);
44 keys.every(function (option) {
45 if (self.options[option]) {
54 denied.findOneAndUpdate.limit =
55 denied.findOneAndUpdate.skip =
56 denied.findOneAndUpdate.batchSize =
57 denied.findOneAndUpdate.maxScan =
58 denied.findOneAndUpdate.snapshot =
59 denied.findOneAndUpdate.hint =
60 denied.findOneAndUpdate.tailable =
61 denied.findOneAndUpdate.comment = true;
64 denied.count = function (self) {
65 if (self._fields && Object.keys(self._fields).length > 0) {
66 return 'field selection and slice'
69 var keys = Object.keys(denied.count);
72 keys.every(function (option) {
73 if (self.options[option]) {
84 denied.count.batchSize =
85 denied.count.comment =
86 denied.count.maxScan =
87 denied.count.snapshot =
88 denied.count.tailable = true;