smart-query-nestjs 1.0.0 → 1.0.1
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 +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# smart-query-nestjs
|
|
2
2
|
|
|
3
3
|
A high-performance, ORM-agnostic NestJS library for search, filtering, pagination, and sorting in REST APIs.
|
|
4
4
|
|
|
@@ -17,7 +17,7 @@ A high-performance, ORM-agnostic NestJS library for search, filtering, paginatio
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
|
-
npm install
|
|
20
|
+
npm install smart-query-nestjs
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
## Quick Start
|
|
@@ -26,7 +26,7 @@ npm install nestjs-smart-query
|
|
|
26
26
|
|
|
27
27
|
```typescript
|
|
28
28
|
import { Module } from '@nestjs/common';
|
|
29
|
-
import { SmartQueryModule } from '
|
|
29
|
+
import { SmartQueryModule } from 'smart-query-nestjs';
|
|
30
30
|
|
|
31
31
|
@Module({
|
|
32
32
|
imports: [
|
|
@@ -48,7 +48,7 @@ export class AppModule {}
|
|
|
48
48
|
|
|
49
49
|
```typescript
|
|
50
50
|
import { Controller, Get, UseInterceptors } from '@nestjs/common';
|
|
51
|
-
import { SmartQueryInterceptor, SmartQuery, buildSmartQuery } from '
|
|
51
|
+
import { SmartQueryInterceptor, SmartQuery, buildSmartQuery } from 'smart-query-nestjs';
|
|
52
52
|
|
|
53
53
|
const customerQueryConfig = {
|
|
54
54
|
searchableFields: ['full_name', 'email'],
|
package/package.json
CHANGED