Add DropDatabase

This commit is contained in:
George Suntres
2026-04-21 10:25:01 -04:00
parent 1547f8c736
commit 45f9ac558f
3 changed files with 17 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ func (c *MongoClient) Replace(ctx context.Context, database, name string, id str
if err := c.DiscriminatorCheckAndApplyToData(ctx, name, data); err != nil {
return nil, err
}
updateResult, err := collection.ReplaceOne(ctx, filter, data)
if err != nil {
return nil, err