LokiDB
LokiDB copied to clipboard
Array support
I'm submitting a...
[x] Feature request
Current behavior
Currently, the only options to query at array property level is $contains and $size.
See techfort/LokiJS/issues/447
Expected behavior
Introduce a new operator (like $array) which enables all other operations ($neq, $lt...) at each element of an array.
Minimal reproduction of the problem with instructions
coll.insert({ar: [1, 2, 3, 4]});
coll.find({
$array: ["ar", {
$lt: 2
}]
});
What is the motivation/use case for changing the behavior?
More useful operator.