I have this script that works well:
SELECT json_object(
...
'lastEdited', DATE_FORMAT(NOW(), '%Y-%m-%dT%TZ')
)
and it prints out:
"lastEdited": "2018-12-27T18:02:48Z",
but I would like it to be:
"lastEdited": ISODate("2018-12-27T18:02:48Z"),
is it possible to wrap it with ISODate()
?