-
Type: New Feature
-
Resolution: Won't Fix
-
Priority: 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 ?