Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29512

Convert an ObjectId to a hex string in aggregation pipeline stages

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None

      Description

      At the moment if you need to concatenate two ObjectIds into a single string value then this has to be done outside AP (in Java code, etc).

      What would be really handy is if there was so sort of $toString function that converts anything to a String representation or if you wanted to cut down the scope for now then expand the $concat function to internally convert ObjectIds to their hex string representation during the concat operation.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: