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 support of @> operator. #641

Closed
Satont opened this issue Jul 5, 2020 · 1 comment
Closed

Add support of @> operator. #641

Satont opened this issue Jul 5, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@Satont
Copy link

Satont commented Jul 5, 2020

Is your feature request related to a problem? Please describe.

I has an table, what cannot be migrated to normal architecure.
Schema:
image
Currently i can't check does that array contains item from other array, like in sequelize i can:

where: { 
  follows: { [Op.contains]: [128644134] }, 
  service: 'telegram' 
}

Describe the solution you'd like
Add new operator $contains, with @> implementation

Describe alternatives you've considered
Cannot imagine.

Additional context
My english is not quiet good, again what i wants:

i has array in my column, like [123, 321], and i wan't check does [123, 321] contains any item from where query $contains: [321]

@Satont Satont added the enhancement New feature or request label Jul 5, 2020
@B4nan B4nan added this to the 4.0 milestone Jul 24, 2020
B4nan added a commit that referenced this issue Jul 24, 2020
Adds some new postgres only operators

Closes #641
@B4nan
Copy link
Member

B4nan commented Jul 24, 2020

Implemented in v4 via f70803f

@B4nan B4nan closed this as completed Jul 24, 2020
B4nan added a commit that referenced this issue Aug 2, 2020
Adds some new postgres only operators

Closes #641
B4nan added a commit that referenced this issue Aug 9, 2020
Adds some new postgres only operators

Closes #641
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants