[DOCS-11442] Docs for SERVER-32736: Add "onError" and "onNull" options to $dateFromString Created: 13/Mar/18  Updated: 29/Oct/23  Due: 04/May/18  Resolved: 24/Jul/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7.3

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Andrew Aldridge
Resolution: Fixed Votes: 0
Labels: docs-grab-0504
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-32736 Add "onError" and "onNull" options to... Closed
Participants:
Days since reply: 5 years, 29 weeks, 1 day ago
Epic Link: DOCS: 4.0 Server

 Description   

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:



 Comments   
Comment by Githook User [ 24/Jul/18 ]

Author:

{'name': 'Andrew Aldridge', 'email': 'i80and@foxquill.com', 'username': 'i80and'}

Message: DOCS-11442: Add "onError" and "onNull" options to $dateFromString
Branch: master
https://github.com/mongodb/docs/commit/3d50145958a3d11259f27bf96d57fdbce49625ff

Comment by Jonathan DeStefano [ 13/Mar/18 ]

nicholas.zolnierz

I'm triaging the ticket for the docs team. Would you mind confirming my understanding?

  • The string value provided for "onError" is returned as an ISODate when the operator throws an error
  • The string value provided for "onNull" is returned as an ISODate when a null value is passed to the operator ? (not totally sure about this one as per my comment on DOCS-11441 )
Generated at Thu Feb 08 08:02:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.