Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-604

Cursor should return the objectID ("_id)

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Core API
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: