UNPKG

mongodb-dynamic-api

Version:

Auto generated CRUD API for MongoDB using NestJS

7 lines (6 loc) 586 B
import { Type } from '@nestjs/common'; import { DynamicApiControllerOptions, DynamicAPIRouteConfig } from '../../interfaces'; import { BaseEntity } from '../../models'; import { AggregateControllerConstructor } from './aggregate-controller.interface'; declare function AggregateControllerMixin<Entity extends BaseEntity>(entity: Type<Entity>, controllerOptions: DynamicApiControllerOptions<Entity>, { dTOs, useInterceptors, isArrayResponse, ...routeConfig }: DynamicAPIRouteConfig<Entity>, version?: string): AggregateControllerConstructor<Entity>; export { AggregateControllerMixin };