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

add Collection.FindAll

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 1.1.3
    • CRUD
    • None

    Description

      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 ?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: