You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/graphql/scalars.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ The code-first approach ships with five scalars in which three of them are simpl
10
10
-`Int` (alias for `GraphQLInt`) - a signed 32‐bit integer
11
11
-`Float` (alias for `GraphQLFloat`) - a signed double-precision floating-point value
12
12
-`GraphQLISODateTime` - a date-time string at UTC (used by default to represent `Date` type)
13
-
-`GraphQLTimestamp` - a numeric string which represents time and date as number of milliseconds from start of UNIX epoch
13
+
-`GraphQLTimestamp` - a signed integer which represents date and time as number of milliseconds from start of UNIX epoch
14
14
15
15
The `GraphQLISODateTime` (e.g. `2019-12-03T09:54:33Z`) is used by default to represent the `Date` type. To use the `GraphQLTimestamp` instead, set the `dateScalarMode` of the `buildSchemaOptions` object to `'timestamp'` as follows:
0 commit comments