0

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()?

Daniel E.
  • 2,440
  • 1
  • 14
  • 24
JohnBigs
  • 2,691
  • 3
  • 31
  • 61

0 Answers0