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

README out of date WRT using nil in Find

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 0.3.0
    • 0.2.0
    • Documentation
    • None

    Description

      README and doc suggested using nil as the filter doc

      cur, err := collection.Find(ctx, nil)
      

      However as far as I can tell this will lead to a nil error according to https://github.com/mongodb/mongo-go-driver/blob/80e6fbdb941cebf741d02e5e848585d2d06ee8d2/mongo/collection_internal_test.go#L375-L376

      Attachments

        Activity

          People

            divjot.arora@mongodb.com Divjot Arora (Inactive)
            chunming.li@mongodb.com Chunming Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: