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

README out of date WRT using nil in Find

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 0.3.0
    • Affects Version/s: 0.2.0
    • Component/s: Documentation
    • Labels:
      None

      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

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

              Created:
              Updated:
              Resolved: