type
$type
Returns the type name of the input value as a string. Unlike the $is-* constraint family,
this operator produces the type name as a value usable in pipelines and templates.
Return values: 'string', 'number', 'boolean', 'array', 'object', 'date', 'schema', 'null', 'undefined'