diff --git a/exp/update.go b/exp/update.go index 9197d82..0488760 100644 --- a/exp/update.go +++ b/exp/update.go @@ -24,6 +24,12 @@ func NewUpdateExpressions(tagName string, update interface{}) (updates []UpdateE updates = append(updates, us...) return updates, nil } + + if u, ok := update.(UpdateExpression); ok { + updates = append(updates, u) + return updates, nil + } + updateValue := reflect.Indirect(reflect.ValueOf(update)) switch updateValue.Kind() { case reflect.Map: