fake-factory
v0.4.0
Published
## How to install
Downloads
7
Readme
Fake Model Factory for mogngoose models
How to install
npm i facke-factory
It's easy to use:
Using with Typescript:
import mongoose from "mongoose";
import Factory from "fake-factory";
const factory = new Factory('<Model name as defined in model creation>');
const defaults = await factory.createInstance({
name: "Mohamed"
});
console.log(defaults);