-
-
Notifications
You must be signed in to change notification settings - Fork 545
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
Feature: add array operators #754
base: master
Are you sure you want to change the base?
Conversation
Adds `$contArr` & `$intersectsArr` operators to filters that can be used as filters on `@Crud()`-decorated entities.
We currently use this patch on top of 4.6.2. I'd be happy to open a PR for 4.6.x, if someone will create a branch I can use as a PR target. |
Thank you. Is this going to be merged? |
Good initiative and indeed welcomed feature ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small question
|
||
export type SFieldOperator = { | ||
$eq?: SFiledValues; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this block ($eq?:...
to notinL
) marked deleted? Looks like an indent issue with your code editor of choice...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge with main or close :O)
More info here: nestjsx#754
@emmanuel Hi, since this repo seems to be obsolete, can you please check the same PR code in the new (maintained) fork here? If you wish I can delete my PR and you can create a new one there. (I created it there using your code because I was asked to) Thanks a lot! |
More info here: nestjsx#754
Adds new
contArr
andintersectsArr
query operators, with theintersectsArr
operator generating SQL queries like:This selects rows where the
tags
column, which is presumed to be of typetext[]
, contains at least one value that equals$1
or$2
.Fixes #687