Docs Menu
Docs Home
/
Relational Migrator
/ /

New Documents

On this page

  • About this Task
  • Behavior
  • Example

The New Documents mapping rule is the most basic mapping rule option. It creates a document for each row of data in your relational database.

Any database table can use a New Documents mapping rule.

Use this mapping rule when you want data from a table to be stored in a dedicated collection.

You can have multiple New Documents mapping rules from different tables into the same collection. Relational Migrator treats these tables as isolated data and the destination documents are not merged together in any way.

This section demonstrates the relational input and the MongoDB output of the New Documents mapping rule.

In this example a New Documents mapping rule is applied to a single row from the Customer table.

Click the tabs below to see the input and output for this example:

← Mapping Rule Options