Skip to main content
Version: 1.2.x

Objects

Objects

SurrealDB records can store objects, with no limit to the depth of any nested objects or values within. This means that objects and arrays can be stored within each other in order to model complex data scenarios. Objects can store any value stored within them, and can store different value types within the same object.

CREATE person SET metadata = {
interest_level: 83.67,
information: {
age: 23,
gender: 'm',
},
marketing: true,
activities: [
"clicked link",
"contact form",
"read email",
"viewed website",
"viewed website",
"viewed website",
"read email",
]
};