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 ! |
| export type SFiledValues = SFieldValues; | ||
|
|
||
| export type SFieldOperator = { | ||
| $eq?: SFiledValues; |
There was a problem hiding this comment.
Why is this block ($eq?:... to notinL) marked deleted? Looks like an indent issue with your code editor of choice...?
bestori
left a comment
There was a problem hiding this comment.
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
contArrandintersectsArrquery operators, with theintersectsArroperator generating SQL queries like:This selects rows where the
tagscolumn, which is presumed to be of typetext[], contains at least one value that equals$1or$2.Fixes #687