This package is for generating an ERD when using mongoose models
- install using
yarn add mongoose-erd
- import the package
import mongooseErd from 'mongoose-erd'
- use either
mongooseErd.toString(mongoose)
ormongooseErd.toFile(mongoose, FILE_PATH)
and send your mongoose object
The package generates an er file which can be converted into png\pdf\...
after getting the er file use the ERD tool to convert it to whatever you want.
you can even use atom erd package
if you need any help, write me an issue