mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
doc/upsert: add example for clearing and de/incrementing fields (#1994)
This commit is contained in:
@@ -231,6 +231,8 @@ err := client.User.
|
||||
// Override some of the fields with a custom update.
|
||||
Update(func(u *ent.UserUpsert) {
|
||||
u.SetAddress("localhost")
|
||||
u.AddCount(1)
|
||||
u.ClearPhone()
|
||||
}).
|
||||
Exec(ctx)
|
||||
```
|
||||
|
||||
@@ -566,7 +566,7 @@ header ul, ol {
|
||||
|
||||
@media only screen and (min-width: 1425px) {
|
||||
.homeContainer {
|
||||
padding: 0 19% 20px;
|
||||
padding: 0 19% 50px;
|
||||
}
|
||||
|
||||
.home-nav {
|
||||
|
||||
Reference in New Issue
Block a user