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
    • Labels:

      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 an experimental proposal to add more robust support to work with dates and times in Javascript.  The temporal specification includes a section on stringifying Temporal objects for persistence (background here).

      We would like to add support for temporal objects to MongoDB and BSON.

      What use case would this feature/improvement enable?

      • Queries that should be simple (i.e., query for all dates that occurred on a current day) are cumbersome and error prone with the current date implementation in MongoDB.  Temporal support in MongoDB could simplify querying for dates dramatically.
      • In the future, Javascript users will want to use Temporal objects with MongoDB and the node driver.  Builtin temporal support would enable Javascript developers to use the Temporal api with as little friction as possible and keep the Node driver up-to-date with the Javascript ecosystem.

       

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

              Created:
              Updated: