mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
doc: replace CreateX reference to SaveX (#882)
This commit is contained in:
committed by
GitHub
parent
7aa41b88f6
commit
99d237ff98
@@ -563,7 +563,7 @@ func Do(ctx context.Context, client *ent.Client) error {
|
||||
// / \
|
||||
// 3 5
|
||||
//
|
||||
// Unlike `Create`, `CreateX` panics if an error occurs.
|
||||
// Unlike `Save`, `SaveX` panics if an error occurs.
|
||||
n1 := client.Node.
|
||||
Create().
|
||||
SetValue(1).
|
||||
|
||||
Reference in New Issue
Block a user