Temporal types

This is the documentation of the GraphQL Library version 6. For the long-term support (LTS) version 5, refer to GraphQL Library version 5 LTS.

Type Description Example

DateTime

ISO datetime string stored as a datetime temporal type.

type User @node {
    createdAt: DateTime
}

Date

"YYYY-MM-DD" date string stored as a date temporal type.

type Movie @node {
    releaseDate: Date
}

Duration

ISO 8601 duration string stored as a duration type.

Decimal values are not currently accepted on [YMWD]. Comparisons are made according to the Cypher Developer Guide.

type Movie @node {
    runningTime: Duration!
}

LocalDateTime

"YYYY-MM-DDTHH:MM:SS" datetime string stored as a LocalDateTime temporal type.

type Movie @node {
    nextShowing: LocalDateTime
}

Time

RFC3339 time string stored as a Time temporal type.

type Movie @node {
    nextShowing: Time
}

LocalTime

"HH:MM:SS[.sss+]" time string stored as a LocalTime temporal type.

type Movie @node {
    nextShowing: LocalTime
}