@@ -123,7 +123,7 @@ type FieldFunc = <
123
123
export const field = fieldd as FieldFunc
124
124
// TODO: remove when we use { graphql } from '.keystone'
125
125
126
- export const JSON = graphqlTsSchema . g . scalar < JSONValue > (
126
+ export const JSON = graphqlTsSchema . graphql . scalar < JSONValue > (
127
127
new GraphQLScalarType ( {
128
128
name : 'JSON' ,
129
129
description :
@@ -140,7 +140,7 @@ type FileUpload = {
140
140
createReadStream ( ) : ReadStream
141
141
}
142
142
143
- export const Upload = graphqlTsSchema . g . scalar < Promise < FileUpload > > ( GraphQLUpload )
143
+ export const Upload = graphqlTsSchema . graphql . scalar < Promise < FileUpload > > ( GraphQLUpload )
144
144
145
145
// - Decimal.js throws on invalid inputs
146
146
// - Decimal.js can represent +Infinity and -Infinity, these aren't values in Postgres' decimal,
@@ -209,7 +209,7 @@ function parseDate (input: string): Date {
209
209
return parsed
210
210
}
211
211
212
- export const DateTime = graphqlTsSchema . g . scalar < Date > (
212
+ export const DateTime = graphqlTsSchema . graphql . scalar < Date > (
213
213
new GraphQLScalarType ( {
214
214
name : 'DateTime' ,
215
215
specifiedByURL : 'https://datatracker.ietf.org/doc/html/rfc3339#section-5.6' ,
@@ -243,7 +243,7 @@ function validateCalendarDay (input: string) {
243
243
}
244
244
}
245
245
246
- export const CalendarDay = graphqlTsSchema . g . scalar < string > (
246
+ export const CalendarDay = graphqlTsSchema . graphql . scalar < string > (
247
247
new GraphQLScalarType ( {
248
248
name : 'CalendarDay' ,
249
249
specifiedByURL : 'https://datatracker.ietf.org/doc/html/rfc3339#section-5.6' ,
@@ -270,7 +270,7 @@ export const CalendarDay = graphqlTsSchema.g.scalar<string>(
270
270
} )
271
271
)
272
272
273
- export const Empty = graphqlTsSchema . g . scalar (
273
+ export const Empty = graphqlTsSchema . graphql . scalar (
274
274
new GraphQLScalarType ( {
275
275
name : 'Empty' ,
276
276
serialize ( value ) { return null } ,
0 commit comments