@geekbears/gb-nest-helpers
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @geekbears/gb-nest-helpers

Weekly Downloads

30

Version

0.0.8

License

MIT

Unpacked Size

9.38 kB

Total Files

13

Last publish

Collaborators

  • it-gb