TypeDetectionScheme Parameter (Connect-CosmosDB Cmdlet)
Comma-separated options for how the provider will scan the data to determine the fields and datatypes in each document collection.
Syntax
Connect-CosmosDB -TypeDetectionScheme string
Data Type
cstr
Default Value
"RowScan,Recent"
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 determine whether RowScan is executed on the most recent documents in the collection. Can be used with RowScan. |
RawValue | Setting TypeDetectionScheme to RawValue will push each document as single aggregate on a column named JsonData, along with its resource identifier on the separate Primary Key column. Cannot be combined with other options. |