From de9bf4daf1a459ea4242eddf90aaf49dbe4d4713 Mon Sep 17 00:00:00 2001 From: Ariel Mashraki <7413593+a8m@users.noreply.github.com> Date: Tue, 28 Sep 2021 22:31:19 +0300 Subject: [PATCH] doc/upsert: add example for clearing and de/incrementing fields (#1994) --- doc/md/crud.md | 2 ++ doc/website/src/css/custom.css | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/md/crud.md b/doc/md/crud.md index 463236640..09411729c 100755 --- a/doc/md/crud.md +++ b/doc/md/crud.md @@ -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) ``` diff --git a/doc/website/src/css/custom.css b/doc/website/src/css/custom.css index f2124234e..c61d5f37f 100644 --- a/doc/website/src/css/custom.css +++ b/doc/website/src/css/custom.css @@ -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 {