Add UpdateSet

This commit is contained in:
George Suntres
2026-04-22 10:30:27 -04:00
parent 9c797c087b
commit ac33f2f04c
5 changed files with 86 additions and 46 deletions

View File

@@ -104,6 +104,7 @@ func Init(props *InitProps) {
BuildGetOne(col, report)
BuildDeleteOne(col, report)
BuildReplaceOne(col, report)
BuildUpdateSet(col, report)
client.AddDefinition(col)
}
@@ -315,3 +316,13 @@ func (p *Persist) GetAccountByCode(ctx context.Context, code string) (*Account,
return &acc, nil
}
func SetRelaxed() {
client := mongo.GetMongoClient()
client.SetRelaxed()
}
func SetStrict() {
client := mongo.GetMongoClient()
client.SetStrict()
}