Conversion from MongoDB to Mongoose

How to convert a MongoDB project to Mongoose

In Moon Modeler, you can create a project for MongoDB from scratch or by loading a structure from an existing database. In both cases, the project will be for MongoDB.

If you are interested in generating Mongoose scripts for your database structure, you can convert your project from MongoDB to Mongoose.… Read the rest

AWS Amazon DocumentDB

In this article, we will explain how to connect to AWS Amazon DocumentDB in Moon Modeler and how to automatically create a diagram of an existing database.

What is AWS DocumentDB?

Amazon DocumentDB (with MongoDB compatibility) is a fast, scalable, highly available, and fully managed document database service that supports MongoDB workloads.… Read the rest

MongoDB schema design

Quick start guide for MongoDB schema design in Moon Modeler.

How to get started with MongoDB schema design?

The following text explains how to design a new database structure for MongoDB.

1. Create a new Project

To create a new project in Moon Modeler click the New item on the toolbar.… Read the rest

MongoDB indexes

MongoDB indexes

When you create a new index for MongoDB collection in Moon Modeler, the Index Assistant window will appear.

adding index to mongoDB

Indexes can be defined easily. Just select the fields, either from the drop down element:

index creation for MongoDB

or by typing the field name directly. The auto-completion feature is available for you.

Click the Add button to insert the field to the index.… Read the rest

MongoDB – ER diagram & graphics

Settings for graphics can be defined on three levels in Moon Modeler. On a project level, diagram level and on a selected object level.

Colors and graphics defined on the project level

If you wish to change the footer color (e.g. for easier recognition of the project you currently work with), click the ER diagram area to make sure no object is selected.… Read the rest

NoSQL data modeling

Data modeling is the process of visually creating a graphical representation of a system or database. In the case of relational databases, we can mention the creation of entity-relational diagrams in which entities, attributes and relationships between entities are displayed. (Read more information about ER diagrams).

Advantages of data modeling

  • Fewer design and development errors
  • Easy and fast design, especially in the early stages of development
  • Better communication between team members
  • Time saving
  • Lower development costs
  • and many others

MongoDB schema design and noSQL database modeling

But what is the advantage of data modeling when we talk about noSQL databases?… Read the rest

Mongoose schema design

Quick start guide for Mongoose schema design.

  1. New project
  2. Mongoose schema design – schemata
  3. Mongoose schema design – hierarchies
  4. References
  5. Code generation

1. New project

To create a new project, click the New item on toolbar and select Mongoose project type.

new mongoose project

2. Design schemata

To add a new schema to your Mongoose schema design, click the Schema item on toolbar and then click the diagram area.… Read the rest

Generating MongoDB schema validation scripts

To generate a MongoDB schema validation script from your project, click the Script icon on the main toolbar. A preview of the script will appear in the modal form.

Click the Save Scripts button and select a location to save the files.

Script generation

The Overwrite existing files option allows you to ignore existing scripts and overwrite them without displaying a warning.… Read the rest

Visualization of existing MongoDB databases

Connections and reverse engineering

Moon Modeler allows you to visualize existing MongoDB databases. You can connect to your locally running or cloud-based MongoDB database, Cosmos DB API for MongoDB or AWS Amazon DocumentDB. To manage your database connections, click the Connections button on the main toolbar.

Connection button on Toolbar

Then click the button Create a new connection to open a modal form.… Read the rest

Quick links

Free Trial Buy Now!