Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4055

Add Temporal Support to MongoDB and the Node Driver

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      This ticket is adapted from this comment - https://github.com/mongodb/js-bson/pull/490#issuecomment-1055492164

      How are you using Mongo? What version of the server and driver are you using?

      n/a

      What is the feature/improvement you would like?

      Temporal is a stage 3 ECMAScript proposal to add more robust support to work with dates and times in Javascript.

      We should consider supporting serialization and deserialization of Temporal objects natively in the driver and BSON library.

      We will need to consider what Temporal objects are properly serializable as BSON date objects and which are not.  For Temporal objects which cannot be serialized as a BSON date, we can consider serializing them as strings outlined according to the docs on Temporal objects for persistence (background here).

            Assignee:
            Unassigned Unassigned
            Reporter:
            bailey.pearson@mongodb.com Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: