Skip to content

Commit d836716

Browse files
Merge pull request #2036 from exarus/patch-1
Update scalars.md: GraphQLTimestamp is integer
2 parents 3563d2b + 07457b3 commit d836716

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)