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 && array criteria method #1030

Closed
jwoertink opened this issue Apr 25, 2024 · 1 comment
Closed

Add && array criteria method #1030

jwoertink opened this issue Apr 25, 2024 · 1 comment
Labels
feature request A new requested feature / option

Comments

@jwoertink
Copy link
Member

I don't know what this is called, but it's handy

SELECT * FROM users WHERE tags && '{ruby,crystal}'::text[];

This returns all users that have either ruby or crystal in their tags array, but not necessarily both.

It would be like

UserQuery.new.tags.has_any(["ruby", "crystal"])
@jwoertink jwoertink added the feature request A new requested feature / option label Apr 25, 2024
@jwoertink
Copy link
Member Author

Closed by #1042

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A new requested feature / option
Projects
None yet
Development

No branches or pull requests

1 participant