Socket
Socket
Sign inDemoInstall

@nodeteam/nestjs-pipes

Package Overview
Dependencies
18
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.9 to 1.1.0

src/prisma/select.pipe.ts

2

index.d.ts

@@ -5,2 +5,4 @@ export namespace Pipes {

export type Order = Record<string, 'asc' | 'desc'>;
export type Select = Record<string, boolean>;
}

2

package.json
{
"name": "@nodeteam/nestjs-pipes",
"version": "1.0.9",
"version": "1.1.0",
"description": "Pipes collection for Nest.JS app",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -108,1 +108,20 @@ # Installation

```
# SelectPipe
```typescript
@Query('select', SelectPipe) select?: Pipes.Select
```
### Examples:
* Select the columns `firstName` and `lastName`
```
https://example.com/?select=firstName,lastName
```
* Exclude the columns `firstName` and `lastName`
```
https://example.com/?select=-firstName,-lastName
```
import WherePipe from './prisma/where.pipe';
import OrderByPipe from './prisma/order-by.pipe';
import SelectPipe from './prisma/select.pipe';

@@ -7,2 +8,3 @@ export {

OrderByPipe,
SelectPipe,
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc