Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-3156

Document behavior of passing a date to aggregation framework

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.3.6
    • Component/s: manual
    • Last comment by Customer:
      true
    • Actual Time:
      4

      Description

      The aggregation operators page says "Arithmetic operators support only numbers." But when using $subtract on two ISODates, it seemingly returns the number of milliseconds between them, which is decent, usable behavior. The page for $subtract doesn't note this either. http://docs.mongodb.org/manual/reference/operator/aggregation/subtract/#exp._S_subtract

      This behavior should be documented on the pages of the arithmetic operators, unless there's a reason we don't want to consider this a feature?

        Attachments

          Activity

            People

            Assignee:
            tim.slavin Tim Slavin
            Reporter:
            kyle.erf Kyle Erf
            Participants:
            Last commenter:
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              7 years, 21 weeks, 4 days ago
              Date of 1st Reply: