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

Use insertion-ordered map in ops.Find

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      Because `collection.FindOne()` allows the user to specify FindOptions, it's possible that a user could specify a limit other than 1. To ensure that the command has the correct semantics, we should change ops.Find to use an insertion-ordered map once it's implemented instead of a bson.D and ensure that the last option in the list has precedence.

      Attachments

        Activity

          People

            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            sam.rossi@mongodb.com Samuel Rossi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: