Impl new driver even if i lose arr operations

This commit is contained in:
Bel LaPointe
2020-07-23 19:49:31 -06:00
parent ef27716695
commit 99885da94f
3 changed files with 253 additions and 7 deletions

View File

@@ -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
}