mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/predicate: add isnull/notnull predicates for codegen
Reviewed By: idoshveki Differential Revision: D16687226 fbshipit-source-id: 14a39e066447dbf77413e5c7f7318a2d61bddd32
This commit is contained in:
committed by
Facebook Github Bot
parent
23059c8bae
commit
25f5a2ef01
@@ -119,6 +119,8 @@ func ExampleFile() {
|
||||
Create().
|
||||
SetSize(1).
|
||||
SetName("string").
|
||||
SetUser("string").
|
||||
SetGroup("string").
|
||||
SaveX(ctx)
|
||||
log.Println("file created:", f)
|
||||
|
||||
@@ -142,6 +144,8 @@ func ExampleGroup() {
|
||||
Create().
|
||||
SetSize(1).
|
||||
SetName("string").
|
||||
SetUser("string").
|
||||
SetGroup("string").
|
||||
SaveX(ctx)
|
||||
log.Println("file created:", f0)
|
||||
u1 := client.User.
|
||||
@@ -306,6 +310,8 @@ func ExampleUser() {
|
||||
Create().
|
||||
SetSize(1).
|
||||
SetName("string").
|
||||
SetUser("string").
|
||||
SetGroup("string").
|
||||
SaveX(ctx)
|
||||
log.Println("file created:", f2)
|
||||
gr3 := client.Group.
|
||||
|
||||
Reference in New Issue
Block a user