- Added flex properties that can hold any kind of data ("schema-less") supporting the following types on the Dart side:
- Maps: JSON-like data structure with string keys and arbitrary values, including nested maps and lists.
- Lists: can hold elements of any type, even mixed (like JSON arrays).
On the Dart side, ObjectBox also offers binding to a list of maps, e.g.List<Map<String, dynamic>>. - Dynamic/Object: can hold any kind of data, including primitive types like integer, floating point and string,
plus maps and lists. - Sync note: when used together with the MongoDB Connector,
flex properties allow storing nested documents from MongoDB.
- Added
dateUtcanddateUtcNanoproperty types for DateTime read back UTC.
#308 - Added "GeneratorVersion" enum to enforce generated code is compatible with the runtime library.
You must rundart run build_runner buildafter updating the objectbox package.
Until you regenerate code, compiling will fail with a message like this:
"Error: Required named parameter 'generatorVersion' must be provided".