Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11442

Docs for SERVER-32736: Add "onError" and "onNull" options to $dateFromString

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.3
    • 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:

            Assignee:
            andrew.aldridge@mongodb.com Andrew Aldridge
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 40 weeks, 3 days ago