mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
schema/field: add builder per numeric type
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/21 Reviewed By: alexsn Differential Revision: D16936906 fbshipit-source-id: 06f5721ed0088107cf42382731f8b7282f22eef7
This commit is contained in:
committed by
Facebook Github Bot
parent
8b345d94bb
commit
f519a5465e
@@ -97,6 +97,7 @@ func ExampleFieldType() {
|
||||
SetNillableInt16(1).
|
||||
SetNillableInt32(1).
|
||||
SetNillableInt64(1).
|
||||
SetValidateOptionalInt32(1).
|
||||
SaveX(ctx)
|
||||
log.Println("fieldtype created:", ft)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user