Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array support #106

Open
Viatorus opened this issue Apr 6, 2018 · 0 comments
Open

Array support #106

Viatorus opened this issue Apr 6, 2018 · 0 comments

Comments

@Viatorus
Copy link
Member

Viatorus commented Apr 6, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant