Skip to content

Support for ARRAY_CONTAINS #1073

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

Closed
cheeseq opened this issue Feb 4, 2021 · 1 comment · Fixed by #1110
Closed

Support for ARRAY_CONTAINS #1073

cheeseq opened this issue Feb 4, 2021 · 1 comment · Fixed by #1110
Labels
type: enhancement A general enhancement

Comments

@cheeseq
Copy link

cheeseq commented Feb 4, 2021

Hi! Do you have any plans for adding support of ARRAY_CONTAINS couchbase function for query criteria builder? It would be super useful to build a query like so QueryCriteria.where("myArray").arrayContaining("myValue");

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 4, 2021
@mikereiche mikereiche added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 24, 2021
mikereiche added a commit that referenced this issue Mar 24, 2021
Add QueryCriteria arrayContaining which maps to n1ql array_containing.

Closes #1073.
Original pull request #1109.
mikereiche added a commit that referenced this issue Mar 24, 2021
Add QueryCriteria arrayContaining which maps to n1ql array_containing.

Closes #1073.
Original pull request #1109.

Co-authored-by: mikereiche <[email protected]>
mikereiche added a commit that referenced this issue Mar 25, 2021
* Add QueryCriteria arrayContaining.

Add QueryCriteria arrayContaining which maps to n1ql array_containing.

Closes #1073.
Original pull request #1109.

* Support enum parameters to repository queries.

Support enums in AbstractCouchbaseConverter.convertForWriteIfNeeded().

Closes #1069.
Original pull request #1110.

Co-authored-by: mikereiche <[email protected]>
mikereiche added a commit that referenced this issue Mar 30, 2021
Add QueryCriteria arrayContaining which maps to n1ql array_containing.

Closes #1073.
Original pull request #1109.

Co-authored-by: mikereiche <[email protected]>
mikereiche added a commit that referenced this issue Mar 30, 2021
Add QueryCriteria arrayContaining which maps to n1ql array_containing.

Closes #1073.
Original pull request: #1109.

Co-authored-by: mikereiche <[email protected]>
mikereiche added a commit that referenced this issue Mar 30, 2021
Add QueryCriteria arrayContaining which maps to n1ql array_containing.

Closes #1073.
Original pull request: #1109.

Co-authored-by: mikereiche <[email protected]>
@dpedroz
Copy link

dpedroz commented Aug 26, 2022

I think it's not implemented properly. It's trying to use function array_containing which does not exist in db. Shouldn't the proper one be array_contains?
https://docs.couchbase.com/server/current/n1ql/n1ql-language-reference/arrayfun.html#fn-array-contains

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

Successfully merging a pull request may close this issue.

4 participants