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

notOverlaps and notContains for arrays? #181

Open
kuldeep-extentia opened this issue May 2, 2022 · 1 comment
Open

notOverlaps and notContains for arrays? #181

kuldeep-extentia opened this issue May 2, 2022 · 1 comment

Comments

@kuldeep-extentia
Copy link

kuldeep-extentia commented May 2, 2022

Hi,
Is there support for notOverlaps and notContains for array type column?
Also, above stuff in insensitive form?

@mattbretl
Copy link
Member

(Sorry for the delayed response!)

You should be able to use not to construct notOverlaps or notContains, e.g.

allThings(filter: { not: { someField: { overlaps: $arr } } }) {
  ...
}

For more complex logic (e.g. case-insensitive versions of these array operators), I recommended writing a small plugin where you can take full control of the SQL. See #173 (comment) for an example.

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

No branches or pull requests

2 participants