fastify-mongoose-rest
Version:
Rest API generator tools for fastify and mongoose
17 lines (16 loc) • 529 B
TypeScript
import { FastifyReply, FastifyRequest } from 'fastify';
import { Model } from 'mongoose';
import { FastifyMongooseRestOptions } from '../types';
export declare function InsertMany<T>(basePath: string, model: Model<T>, options: FastifyMongooseRestOptions): {
method: 'POST';
url: string;
schema: {
summary: string;
tags?: string[];
body: object[];
response: object;
};
handler: (request: FastifyRequest<{
Body: object[];
}>, reply: FastifyReply) => Promise<any>;
};