Skip to main content

Type conversions

Here's a table to visualize the type conversions in the Rell backend to its corresponding GTV types when inserting into and querying them.

Rell typeOperation inputQuery inputQuery output
entityGtvIntegerGtvIntegerGtvInteger
enumGtvIntegerGtvInteger (can be GtvString)GtvInteger
structGtvArrayGtvArray (can be GtvDict)GtvDict
decimalGtvStringGtvStringGtvString
booleanGtvIntegerGtvIntegerGtvInteger
rowidGtvIntegerGtvIntegerGtvInteger
jsonGtvStringGtvStringGtvString
nullableGtvNull or typeGtvNull or typeGtvNull or type
collectionGtvArrayGtvArrayGtvArray
text mapGtvDictGtvDictGtvDict
non-text map (e.g., [[k1, v1], [k2, v2], ...])GtvArrayGtvArrayGtvArray
named tuple (e.g., (x = 1, y = 2, z = 3))GtvDictGtvDictGtvDict
unnamed tuple (e.g., (1, 2, 3))GtvArrayGtvArrayGtvArray