nestjs-paginate 2.5.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -199,7 +199,7 @@ const paginateConfig: PaginateConfig<CatEntity> {
199
199
  * Default: None
200
200
  * https://typeorm.io/#/find-options/advanced-options
201
201
  */
202
- filterableColumns: { age: [FilterOperator.EQ, FilterOperator.IN] }
202
+ filterableColumns: { age: [FilterOperator.EQ, FilterOperator.IN] },
203
203
 
204
204
  /**
205
205
  * Required: false
@@ -212,6 +212,8 @@ const paginateConfig: PaginateConfig<CatEntity> {
212
212
 
213
213
  ## Usage with Query Builder
214
214
 
215
+ You can paginate custom queries by passing on the query builder:
216
+
215
217
  ### Example
216
218
 
217
219
  ```typescript
@@ -225,6 +227,8 @@ const result = await paginate<CatEntity>(query, queryBuilder, config)
225
227
 
226
228
  ## Usage with Relations
227
229
 
230
+ You can utilize simplified left-join form using `relations`:
231
+
228
232
  ### Example
229
233
 
230
234
  #### Endpoint
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nestjs-paginate",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "author": "Philipp Petzold <ppetzold@protonmail.com>",
5
5
  "license": "MIT",
6
6
  "main": "lib/index.js",