Cursor should return the objectID ("_id)

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Core API
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Cursor has a ID() int64 method which seems to serve no purpose, at least not for the end user of the API. 

        I propose to either replace this or add a new method ObjectID() which should return the objectID (_id) of the current/latest element from cursor.  Currently there doesn't seem to me a method to get the objectID unless you create new types with an additional "_id"  field for each result.

            Assignee:
            Unassigned
            Reporter:
            Mihai B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: