@shahzaibalam231/mongoose-sequential-plugin
Version:
mongoose auto increment ~
12 lines (9 loc) • 306 B
text/typescript
import { Schema } from 'mongoose';
interface MongooseSequentialOptions {
modelName: string;
field: string;
startAt?: number;
incrementBy?: number;
}
declare const mongooseSequentialPlugin: (schema: Schema, options: MongooseSequentialOptions) => void;
export { mongooseSequentialPlugin };