Skip to content

Commit 242a59c

Browse files
committed
update readme
1 parent 20fc3d4 commit 242a59c

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ getMany(
8181
}
8282
```
8383
84+
You still have access to [TypeORM Find Options](https://github.com/typeorm/typeorm/blob/master/docs/find-options.md). Just pass them as the second parameter to the `findAndPaginate`
85+
86+
Example:
87+
```typescript
88+
UserEntity.findAndPaginate(pg, {
89+
where: {
90+
firstname: IsNull(),
91+
},
92+
});
93+
```
94+
8495
Example request:
8596
```
8697
/user?_limit=11&_start=0&_sortBy=id&_order=DESC&id=1&id=2&email=farrastaimoor@gmail.com

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@
2525
"typeorm",
2626
"pagination",
2727
"paginate",
28+
"filtration",
29+
"filter",
2830
"entity",
29-
"query"
31+
"query",
32+
"request"
3033
],
3134
"publishConfig": {
3235
"access": "public"
@@ -79,4 +82,4 @@
7982
"coverageDirectory": "../coverage",
8083
"testEnvironment": "node"
8184
}
82-
}
85+
}

0 commit comments

Comments
 (0)