Skip to content

Commit 4422deb

Browse files
committed
fix find replace
1 parent ed6c96b commit 4422deb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/core/src/types/schema/graphql-ts-schema.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ type FieldFunc = <
123123
export const field = fieldd as FieldFunc
124124
// TODO: remove when we use { graphql } from '.keystone'
125125

126-
export const JSON = graphqlTsSchema.g.scalar<JSONValue>(
126+
export const JSON = graphqlTsSchema.graphql.scalar<JSONValue>(
127127
new GraphQLScalarType({
128128
name: 'JSON',
129129
description:
@@ -140,7 +140,7 @@ type FileUpload = {
140140
createReadStream(): ReadStream
141141
}
142142

143-
export const Upload = graphqlTsSchema.g.scalar<Promise<FileUpload>>(GraphQLUpload)
143+
export const Upload = graphqlTsSchema.graphql.scalar<Promise<FileUpload>>(GraphQLUpload)
144144

145145
// - Decimal.js throws on invalid inputs
146146
// - Decimal.js can represent +Infinity and -Infinity, these aren't values in Postgres' decimal,
@@ -209,7 +209,7 @@ function parseDate (input: string): Date {
209209
return parsed
210210
}
211211

212-
export const DateTime = graphqlTsSchema.g.scalar<Date>(
212+
export const DateTime = graphqlTsSchema.graphql.scalar<Date>(
213213
new GraphQLScalarType({
214214
name: 'DateTime',
215215
specifiedByURL: 'https://datatracker.ietf.org/doc/html/rfc3339#section-5.6',
@@ -243,7 +243,7 @@ function validateCalendarDay (input: string) {
243243
}
244244
}
245245

246-
export const CalendarDay = graphqlTsSchema.g.scalar<string>(
246+
export const CalendarDay = graphqlTsSchema.graphql.scalar<string>(
247247
new GraphQLScalarType({
248248
name: 'CalendarDay',
249249
specifiedByURL: 'https://datatracker.ietf.org/doc/html/rfc3339#section-5.6',
@@ -270,7 +270,7 @@ export const CalendarDay = graphqlTsSchema.g.scalar<string>(
270270
})
271271
)
272272

273-
export const Empty = graphqlTsSchema.g.scalar(
273+
export const Empty = graphqlTsSchema.graphql.scalar(
274274
new GraphQLScalarType({
275275
name: 'Empty',
276276
serialize (value) { return null },

0 commit comments

Comments
 (0)