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

Convert an ObjectId to a hex string in aggregation pipeline stages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • Aggregation Framework
    • None
    • Query

    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

              backlog-server-query Backlog - Query Team (Inactive)
              aharris Andrew Harris
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: