Bookmarks creation and fetching, advanced query search

This commit is contained in:
2022-12-11 15:28:10 +03:00
parent ed012d3715
commit 7674557182
3 changed files with 73 additions and 3 deletions

View File

@ -64,7 +64,7 @@ func (s Store[T]) GetMany(ctx context.Context, filter *bson.D) ([]*T, error) {
log.Println("Error fetching items: ", err)
return nil, err
}
var res []*T
res := []*T{}
err = cur.All(ctx, &res)
if err != nil {
log.Println("Error collecting items to slice: ", err)