diff --git a/examples/number-fields/schema.graphql b/examples/number-fields/schema.graphql index 7ae1ce160a0..68412194bce 100644 --- a/examples/number-fields/schema.graphql +++ b/examples/number-fields/schema.graphql @@ -4,8 +4,11 @@ type Example { id: ID! bigInt: BigInt + bigIntDefaulted: BigInt float: Float + floatDefaulted: Float integer: Int + integerDefaulted: Int } scalar BigInt @@ -20,8 +23,11 @@ input ExampleWhereInput { NOT: [ExampleWhereInput!] id: IDFilter bigInt: BigIntNullableFilter + bigIntDefaulted: BigIntNullableFilter float: FloatNullableFilter + floatDefaulted: FloatNullableFilter integer: IntNullableFilter + integerDefaulted: IntNullableFilter } input IDFilter { @@ -71,8 +77,11 @@ input IntNullableFilter { input ExampleOrderByInput { id: OrderDirection bigInt: OrderDirection + bigIntDefaulted: OrderDirection float: OrderDirection + floatDefaulted: OrderDirection integer: OrderDirection + integerDefaulted: OrderDirection } enum OrderDirection { @@ -82,8 +91,11 @@ enum OrderDirection { input ExampleUpdateInput { bigInt: BigInt + bigIntDefaulted: BigInt float: Float + floatDefaulted: Float integer: Int + integerDefaulted: Int } input ExampleUpdateArgs { @@ -93,8 +105,11 @@ input ExampleUpdateArgs { input ExampleCreateInput { bigInt: BigInt + bigIntDefaulted: BigInt float: Float + floatDefaulted: Float integer: Int + integerDefaulted: Int } """ diff --git a/examples/number-fields/schema.prisma b/examples/number-fields/schema.prisma index 3a3ac48d7f2..2c0d305045e 100644 --- a/examples/number-fields/schema.prisma +++ b/examples/number-fields/schema.prisma @@ -13,8 +13,11 @@ generator client { } model Example { - id String @id @default(cuid()) - bigInt BigInt? - float Float? - integer Int? + id String @id @default(cuid()) + bigInt BigInt? + bigIntDefaulted BigInt? @default(123) + float Float? + floatDefaulted Float? @default(456.321) + integer Int? + integerDefaulted Int? @default(789) } diff --git a/examples/number-fields/schema.ts b/examples/number-fields/schema.ts index 1b71d3e3ec6..d760888806a 100644 --- a/examples/number-fields/schema.ts +++ b/examples/number-fields/schema.ts @@ -12,8 +12,11 @@ export const lists = { access: allowAll, fields: { bigInt: bigInt(), + bigIntDefaulted: bigInt({ defaultValue: 123n }), float: float(), + floatDefaulted: float({ defaultValue: 456.321 }), integer: integer(), + integerDefaulted: integer({ defaultValue: 789 }), }, }), } satisfies Lists