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

How to express "not in" filter? #42

Closed
dvv opened this issue Jul 23, 2024 · 3 comments · Fixed by #43
Closed

How to express "not in" filter? #42

dvv opened this issue Jul 23, 2024 · 3 comments · Fixed by #43

Comments

@dvv
Copy link

dvv commented Jul 23, 2024

Hi!

What is the inverse of Actions.all(Foo, bar: [1, 2, 3]) # select * from foos where (not bar = any([1, 2, 3]))?

TIA

@MikaAK
Copy link
Owner

MikaAK commented Jul 26, 2024

Good question here, we actually don't have a way. I've added this in #43 so the syntax would follow other nots where we do

%{field: %{!=: [1, 2, 3]}}

@dvv
Copy link
Author

dvv commented Jul 26, 2024

Wonder when are you planning publishing it at hexdocs.pm?

@MikaAK
Copy link
Owner

MikaAK commented Jul 26, 2024

2.4.0 has been released with new changes 🎉

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

Successfully merging a pull request may close this issue.

2 participants