mongodb-dynamic-api
Version:
Auto generated CRUD API for MongoDB using NestJS
8 lines (7 loc) • 491 B
TypeScript
import { BaseEntity } from '../../models';
import { UpdateManyService } from './update-many-service.interface';
interface UpdateManyController<Entity extends BaseEntity, Body = any, Response = any> {
updateMany(ids: string[], partial: Body): Promise<(Entity | Response)[]>;
}
type UpdateManyControllerConstructor<Entity extends BaseEntity> = new (service: UpdateManyService<Entity>) => UpdateManyController<Entity>;
export type { UpdateManyController, UpdateManyControllerConstructor };