Foreign reference check across collections with mongoose.
This is a reference project for using the @kolinalabs/mongoose-consistent plugin.
Note: This is an extremely simplified project, with the sole purpose of presenting the plugin's functionalities. You will not find here advanced validators and other types of configurations that are not part of the aforementioned objective.
Download it and follow the steps below to analyze the behaviors and options supported by the plugin:
- Copy
.env.distfile to.envand configure env vars - Install dependencies
npm install(or yarn) - Runnig app with
npm startcommand - Import
Insomnia.jsonfile into Insomnia (if used) - Each model has behavior descriptions of the possible configurations