// All returns all the results for this cursor
All returns all the results for this cursor
// All returns all the results for this cursor
func (cursor *Cursor) All(ctx context.Context, results interface{}) error {
	mongoCursor, err := cursor.createCursor.create(ctx)
	if err != nil {
		cursor.lastError = err
		return wrapMongoError(err)
	}
	err = mongoCursor.All(ctx, results)
	return wrapMongoError(err)
}
func ( cursor * Cursor ) All ( ctx context . Context , results interface { } ) error { mongoCursor , err := cursor . createCursor . create ( ctx ) if err != nil { cursor . lastError = err return wrapMongoError ( err ) } err = mongoCursor . All ( ctx , results ) return wrapMongoError ( err ) }
All returns all the results for this cursor
All returns all the results for this cursor