Prerequisite: Read the Deepkit section about Type Annotations.
ID
TheID type is represented as a ID scalar.
ID is exported from @deepkit-graphql/coreMongoID
TheMongoID type is represented as a ObjectID scalar.
MongoID is exported from @deepkit/typeUUID
TheUUID type is represented as a UUID scalar.
UUID is exported from @deepkit/typeArray
TheArray type is represented as a List.
Date
TheDate type is serialized as an ISO 8601 formatted string, and represented as a DateTime scalar.
An ISO 8601 formatted string looks like
2007-12-03T10:15:30Zstring
Thestring type is represented as a String scalar.
boolean
Theboolean type is is represented as a Boolean scalar.
float
Thefloat type is represented as a Float scalar.
float is exported from @deepkit/typeAnnotations
Positive
ThePositive annotation for float is represented as a PositiveFloat scalar.
Positive is exported from @deepkit/typeNegative
TheNegative annotation for float is represented as a NegativeFloat scalar.
Negative is exported from @deepkit/typenumber
Thenumber type is not a valid type, because it cannot be represented.
integer
Theinteger type is represented as a Int scalar.
integer is exported from @deepkit/typeAnnotations
Positive
ThePositive annotation for integer is represented as a PositiveInt scalar.
Positive is exported from @deepkit/typeNegative
TheNegative annotation for integer is represented as a NegativeInt scalar.
Negative is exported from @deepkit/typebigint
Thebigint type is represented as a BigInt scalar.
Annotations
BinaryBigInt
TheBinaryBigInt type is represented as a BinaryBigInt scalar.
BinaryBigInt is exported from @deepkit/typeSignedBinaryBigInt
TheSignedBinaryBigInt type is represented as a SignedBinaryBigInt scalar.
SignedBinaryBigInt is exported from @deepkit/typeArrayBuffer
TheArrayBuffer type is represented as a Byte scalar.
Uint8Array
TheUint8Array type is represented as a Byte scalar.
