DataModel Parameter (Connect-MongoDB Cmdlet)
By default, the provider will not automatically discover the metadata for a child table as its own distinct table. To enable this functionality, set DataModel to Relational .
Syntax
Connect-MongoDB -DataModel string
Possible Values
DOCUMENT, RELATIONALData Type
cstr
Default Value
"DOCUMENT"
Remarks
When setting DataModel to Relational, the discovery of child tables extends to root level elements and those found within top-level array elements. Additionally, the provider exposes _id and parent_id columns to enable JOIN operations between parent and child tables. The _id column acts as a primary key for the flattened table, while the parent_id column identifies the parent document.