From d0cccce43484fbd3c005664cb4ee4176e6819198 Mon Sep 17 00:00:00 2001 From: ben hockey Date: Wed, 26 Nov 2014 12:40:10 -0600 Subject: [PATCH] remove redundant known operators these are also listed in known scalar operators --- query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query.js b/query.js index cea7c5a..a6ca8fb 100644 --- a/query.js +++ b/query.js @@ -31,7 +31,7 @@ parser.Query = function(seed, params){ }; exports.Query = parser.Query; //TODO:THE RIGHT WAY IS:exports.knownOperators = Object.keys(jsarray.operators || {}).concat(Object.keys(jsarray.jsOperatorMap || {})); -exports.knownOperators = ["sort", "match", "in", "out", "or", "and", "select", "contains", "excludes", "values", "limit", "distinct", "recurse", "aggregate", "between", "sum", "mean", "max", "min", "count", "first", "one", "eq", "ne", "le", "ge", "lt", "gt"]; +exports.knownOperators = ["sort", "match", "in", "out", "or", "and", "select", "contains", "excludes", "values", "limit", "distinct", "recurse", "aggregate", "between", "eq", "ne", "le", "ge", "lt", "gt"]; exports.knownScalarOperators = ["mean", "sum", "min", "max", "count", "first", "one"]; exports.arrayMethods = ["forEach", "reduce", "map", "filter", "indexOf", "some", "every"];