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

add Collection.FindAll

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.1.3
    • Component/s: CRUD
    • None

      Would it be possible to add a new method Collection.FindAll().

      The goal is to simplify the usage of Find() + All() (we need to check the error)

      It would do this:

      • Call Find()
      • Check the error
      • Call All() with the given slice pointer result

      The signature: 

      func (coll *Collection) Find(ctx context.Context, filter interface{}, results interface{}, opts ...*options.FindOptions) (*Cursor, error)
      

      What do you think about it ?

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            pierrre Pierre Durand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: