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

Add in (eq for multiple values) #44

Open
edde746 opened this issue Feb 14, 2022 · 3 comments
Open

Add in (eq for multiple values) #44

edde746 opened this issue Feb 14, 2022 · 3 comments
Labels
enhancement New feature or request
Projects

Comments

@edde746
Copy link

edde746 commented Feb 14, 2022

Check a field against an array of values, similar to SQLs IN.

@guyroyse guyroyse added the enhancement New feature or request label Feb 15, 2022
@guyroyse guyroyse added this to Backlog in Main Board via automation Feb 28, 2022
@guyroyse
Copy link
Contributor

Could also make this variadic so you can say .where('foo').eq('alfa', 'bravo', 'charlie') as well as .where('foo').eq(['alfa', 'bravo', 'charlie']).

@loicbisiere
Copy link

It could be great if we could exclude too: .where('foo').not.eq('alfa', 'bravo', 'charlie') or .where('foo').not.eq(['alfa', 'bravo', 'charlie']).

Is there a way to do it through searchRaw in the meantime?

@guyroyse
Copy link
Contributor

I think the way I wrote search, the negation will just work. But I'll confirm when I work on this feature. For a call to .searchRaw this should be perfectly possible.

@foo:{ alfa | bravo | charlie }: alfa OR bravo OR charlie
@foo:{ alfa } @foo:{ bravo } @foo:{ charlie }: alfa AND bravo AND charlie
-@foo:{ alfa } -@foo:{ bravo } -@foo:{ charlie }: NOT alfa AND NOT bravo AND NOT charlie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Main Board
Backlog
Development

No branches or pull requests

3 participants