add Collection.FindAll

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.1.3
    • Component/s: CRUD
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
            Jeffrey Yemin
            Reporter:
            Pierre Durand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: