Update operators.md
This commit is contained in:
parent
1a7afe1265
commit
25861221ec
@ -1,6 +1,6 @@
|
|||||||
# Filter Operators
|
# Filter Operators
|
||||||
|
|
||||||
Used in the filter paramaters of the `find`, `findOne`, `findAndCount`, `count`, etc. APIs of repository:
|
Used in the filter parameters of the `find`, `findOne`, `findAndCount`, `count`, etc. APIs of repository:
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
const repository = db.getRepository('books');
|
const repository = db.getRepository('books');
|
||||||
@ -527,7 +527,7 @@ repository.find({
|
|||||||
|
|
||||||
### `$notRegexp`
|
### `$notRegexp`
|
||||||
|
|
||||||
Check if the field value does not matche the specified regular expression. Equivalent to `NOT REGEXP` in SQL (PG only).
|
Check if the field value does not match the specified regular expression. Equivalent to `NOT REGEXP` in SQL (PG only).
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
@ -559,7 +559,7 @@ repository.find({
|
|||||||
|
|
||||||
### `$notIRegexp`
|
### `$notIRegexp`
|
||||||
|
|
||||||
Check if the field value does not matche the specified regular expression, case ignored. Equivalent to `!~*` in SQL (PG only).
|
Check if the field value does not match the specified regular expression, case ignored. Equivalent to `!~*` in SQL (PG only).
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
@ -611,7 +611,7 @@ repository.find({
|
|||||||
|
|
||||||
### `$dateBefore`
|
### `$dateBefore`
|
||||||
|
|
||||||
Check if the date field value is before a certain value, i.e. less than the one passed in.
|
Check if the date field value is before a certain value, i.e., less than the one passed in.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
@ -627,7 +627,7 @@ repository.find({
|
|||||||
|
|
||||||
### `$dateNotBefore`
|
### `$dateNotBefore`
|
||||||
|
|
||||||
Check if the date field value is not before a certain value, i.e. equal to or greater than the one passed in.
|
Check if the date field value is not before a certain value, i.e., equal to or greater than the one passed in.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
@ -643,7 +643,7 @@ repository.find({
|
|||||||
|
|
||||||
### `$dateAfter`
|
### `$dateAfter`
|
||||||
|
|
||||||
Check if the date field value is after a certain value, i.e. greater than the one passed in.
|
Check if the date field value is after a certain value, i.e., greater than the one passed in.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
@ -659,7 +659,7 @@ repository.find({
|
|||||||
|
|
||||||
### `$dateNotAfter`
|
### `$dateNotAfter`
|
||||||
|
|
||||||
Check if the date field value is not after a certain value, i.e. equal to or greater than the one passed in.
|
Check if the date field value is not after a certain value, i.e., equal to or greater than the one passed in.
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user