nestjs-paginate 5.0.2 → 5.0.4
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.
- package/README.md +9 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -267,6 +267,14 @@ const paginateConfig: PaginateConfig<CatEntity> {
|
|
|
267
267
|
* [#5670](https://github.com/typeorm/typeorm/issues/5670)
|
|
268
268
|
*/
|
|
269
269
|
paginationType: PaginationType.LIMIT_AND_OFFSET,
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Required: false
|
|
273
|
+
* Type: boolean
|
|
274
|
+
* Default: false
|
|
275
|
+
* Description: Load eager relations using TypeORM's eager property.
|
|
276
|
+
*/
|
|
277
|
+
loadEagerRelations: true
|
|
270
278
|
}
|
|
271
279
|
```
|
|
272
280
|
|
|
@@ -348,7 +356,7 @@ const result = await paginate<CatEntity>(query, catRepo, config)
|
|
|
348
356
|
|
|
349
357
|
## Usage with Eager Loading
|
|
350
358
|
|
|
351
|
-
Eager loading should work with TypeORM's eager property out the box:
|
|
359
|
+
Eager loading should work with TypeORM's eager property out of the box:
|
|
352
360
|
|
|
353
361
|
### Example
|
|
354
362
|
|