Skip to content

Add QueryCriteria arrayContaining. #1110

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

Merged
merged 1 commit into from
Mar 24, 2021

Conversation

mikereiche
Copy link
Collaborator

Add QueryCriteria arrayContaining which maps to n1ql array_containing.

Closes #1073.
Original pull request #1109.

  • You have read the Spring Data contribution guidelines.
  • There is a ticket in the bug tracker for the project in our JIRA.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

Add QueryCriteria arrayContaining which maps to n1ql array_containing.

Closes #1073.
Original pull request #1109.
@mikereiche mikereiche merged commit 521006f into master Mar 24, 2021
@mikereiche mikereiche deleted the datacouch_1073_querycriteria_array_containing branch March 24, 2021 19:10
mikereiche added a commit that referenced this pull request Mar 24, 2021
Support enums in AbstractCouchbaseConverter.convertForWriteIfNeeded().

Closes #1069.
Original pull request #1110.
mikereiche added a commit that referenced this pull request 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]>
@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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for ARRAY_CONTAINS
2 participants