As you develop the model for your MongoDB collection or views, with field-level constraints and indexes, Hackolade dynamically generates corresponding scripts:
- db.createCollection() with validator script
The information can be viewed in the MongoDB Script tab:
You may toggle between Create and Update views:
A button lets the user apply to a selected instance the script to create databases, collections with optional $jsonschema validator, indexes, and sharding configuration, and sample data if desired.
The generation of the script can also be triggered with Command-Line Interface.