Convert an ObjectId to a hex string in aggregation pipeline stages

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Query
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Backlog - Query Team (Inactive)
              Reporter:
              Andrew Harris
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: