TypeDetectionScheme Parameter (Connect-MongoDB Cmdlet)
Comma-separated options for how the provider will scan the data to determine the fields and datatypes in each document collection.
Syntax
Connect-MongoDB -TypeDetectionScheme string
Possible Values
RowScan, None, RecentData Type
cstr
Default Value
"RowScan"
Remarks
None | Setting TypeDetectionScheme to None will return all columns as a string type. Cannot be combined with other options. |
RowScan | Setting TypeDetectionScheme to RowScan will scan rows to heuristically determine the data type. The RowScanDepth determines the number of rows to be scanned. Can be used with Recent. |
Recent | Setting TypeDetectionScheme to 'Recent' will instead execute the rowscan on the most recent documents inserted into the collection. This is a more expensive operation that may be significantly slower on large datasets. |