Skip to content

Property Decorators

Decorators for common NestJS Swagger DTO property metadata.

ts
import { ApiPropertyCreatedAt, ApiPropertyId, ApiPropertyUpdatedAt } from '@querry-kit/nest-util';

ApiPropertyId(options?)

Documents a DTO ID property and defaults the description to The ID of the item..

ApiPropertyCreatedAt(options?)

Documents a created-at property and defaults the description to The creation date of the item..

ApiPropertyUpdatedAt(options?)

Documents an updated-at property and defaults the description to The updated date of the item..

All property decorators accept ApiPropertyOptions.

Released under the MIT License.