-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:
Documentation Request Summary:
$dataFromString now has "onError" and "onNull" options (similar to new $convert expression)
Docs -> See onError and onError description in: https://docs.mongodb.com/master/reference/operator/aggregation/convert/#exp._S_convert
Engineering Ticket Description:
Since not all strings will successfully parse to legal ISODate, it would help if $dateFromString accepted an option for default value to return on error.
Scope of changes:
Impact to other docs outside of this product:
MVP:
Resources:
- documents
-
SERVER-32736 Add "onError" and "onNull" options to $dateFromString
- Closed