This is a Node module specifically built to handle Mongo databases in Meteor.js projects
- Used on Meteor projects
- Only supports MongoDB 3.x
- Only supports Node.js <= 6.x
- Clone this repository into your local directory
- Navigate to the directory
- run
meteor npm install
to install the relevant packages - Run
meteor node index.js
There are two functions, one to generate schema, and the other to check documents against the schemas generated.
- Your schemas are output in
./schemas
from the root directory of this folder in JSON format.
Generate the schemas first before performing any validation. The validation errors are logged in the console if documents have structural issues.