Create Rules From Relational
On this page
Creating mapping rules is how you translate your relational tables into MongoDB collections. You can create mapping rules from either the Relational or MongoDB headers of the schema model pane.
About this Task
Options available on the Add mapping pane depend on the type of mapping rule you are adding. For a full overview of each mapping rule option see:
You can also create mapping rules based on a destination MongoDB model. For more information, see Create Rules to MongoDB.
Steps
Open a project.
In the left Schema model pane, click on a collection under the Relational header.
This prompts the Mappings pane to open on the right of the screen.
On the Mappings pane, click + Add to create a new mapping rule.
Define the name of the target MongoDB collection.
Define the options for the new mapping rule. When defining the mapping rule, you can:
Change the collection name.
Change field names.
To include or exclude a field from your migration job, click the icon next to the field name.
Optionally, if you want to select a BSON type or set null handling rules for your mapping rule:
Click the icon next to the field you want to customize.
Select a BSON type.
Select a Null handling option.
Insert as null: preserves null values, and nulls are inserted into your destination collection.
Omit: skips any null values, and nulls are not inserted into the destination collection.
You can view a field's Original name and Original type in the expanded customized field menu.
Note
For additional details on field customization and data type conversions, see field customizations.
Click Save and close.
Learn More
To learn more about managing mapping rules, see: