Fix broken filtering through discriminator

This commit is contained in:
George Suntres
2026-04-17 20:46:00 -04:00
parent 99b36e577e
commit 7599b8b856
7 changed files with 30 additions and 11 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