Reference

Scalar Types

The framework supports the standard GraphQL scalars and some custom scalars.

GraphQL scalar

Java type

Description

Nullable scalar

Non-null scalar

BigDecimal

BigDecimal

BigDecimal

arbitrary precision decimal

BigInteger

BigInteger

BigInteger

arbitrary precision integer

Boolean

Boolean

boolean

boolean

Char

Character

char

character

Float

Double

double

64-bit IEEE 754 floating point number

ID

String

String

entity identifier

Instant

Instant

Instant

date and time in UTC time zone in format
yyyy-MM-dd’T’HH:mm:ss.SSS’Z'

Int

Integer

int

32-bit signed integer

LocalDate

LocalDate

LocalDate

date without time zone in format yyyy-MM-dd

LocalDateTime

LocalDateTime

LocalDateTime

date and time without time zone in format
yyyy-MM-dd’T’HH:mm:ss

LocalTime

LocalTime

LocalTime

time without time zone in format HH:mm:ss

Long

Long

long

64-bit signed integer

Short

Short

short

16-bit signed integer

String

String

String

string

List Type

The GraphQL list type is translated to Java type java.util.List.