Impl new driver even if i lose arr operations
This commit is contained in:
@@ -60,7 +60,7 @@ func (m Mongo) page(ctx context.Context, cursor *mongo.Cursor) chan bson.Raw {
|
||||
|
||||
func (m Mongo) Update(ctx context.Context, namespace string, filter, apply interface{}) error {
|
||||
c := m.client.Database(m.db).Collection(namespace)
|
||||
_, err := c.UpdateOne(ctx, filter, apply)
|
||||
_, err := c.UpdateMany(ctx, filter, apply)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user