0.0.22 • Published 12 months ago

@geekbears/gb-nest-helpers v0.0.22

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
12 months ago

gb-nest-helpers

NestJS Swagger Decorator

This package includes a @nestjs/swagger decorator to simplify the documentation of query parameters. The @ApiStandardQuery() decorator acts as an alias to @ApiQuery() and wraps all the standard query parameters used by Geekbears on find and count operations.

Usage

Import the decorator and use it on the corresponding method on the controller class.

import { ApiStandardQuery } from '@geekbears/gb-mongoose-query-parser';

@Get()
@ApiStandardQuery()
async find(@Query() query: any): Promise<any> {
    // Do something
}

License

MIT

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

12 months ago

0.0.14

2 years ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago