Implement Stringer for objectid.ObjectID

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Trivial - P5
    • 0.0.2
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I was playing around with the driver and noticed when I print an ObjectID, an array of bytes is printed (ex: [90 150 78 63 112 202 150 82 152 208 62 199]).
      As my first "contribution" I thought I would like to implement the Stringer interface for this type.
      The string method will return a string with something like: ObjectId("5a964bd0939f8aaf8d729fc6").

      I thought I would start with something simple to learn your contribution process.

              Assignee:
              Unassigned
              Reporter:
              Christopher Hunter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: