API Reference
Rockets Core API
nestjs-crud
functions
CrudCreateOne

Function: CrudCreateOne()

CrudCreateOne(options): <TFunction, Y>(target, propertyKey?, descriptor?) => void

CRUD Create One route decorator

Parameters

ParameterType
optionsCrudCreateOneOptionsInterface

Returns

Function

Type Parameters

Type Parameter
TFunction extends Function
Y

Parameters

ParameterType
targetobject | TFunction
propertyKey?string | symbol
descriptor?TypedPropertyDescriptor<Y>

Returns

void

Defined in

packages/nestjs-crud/src/decorators/actions/crud-create-one.decorator.ts:14 (opens in a new tab)