| 243 | |
| 244 | module.exports.beforeQuery = function({config, field, input, options}) { |
| 245 | const isOperatorQuery = tree => { |
| 246 | return Boolean( |
| 247 | tree && |
| 248 | Object.keys(tree).every(key => { |
| 249 | return key[0] === '$' |
| 250 | }) |
| 251 | ) |
| 252 | } |
| 253 | |
| 254 | if (isOperatorQuery(input[field])) { |
| 255 | return input |
no outgoing calls
no test coverage detected