Skip to content

Commit 07457b3

Browse files
authored
Update scalars.md: GraphQLTimestamp is integer
GraphQLTimestamp is an integer in the current version implementation, not a string. The doc should reflect the current version. The wording is taken from the scalar's description property.
1 parent b369245 commit 07457b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/graphql/scalars.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The code-first approach ships with five scalars in which three of them are simpl
1010
- `Int` (alias for `GraphQLInt`) - a signed 32‐bit integer
1111
- `Float` (alias for `GraphQLFloat`) - a signed double-precision floating-point value
1212
- `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
1414

1515
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:
1616

0 commit comments

Comments
 (0)