Data Stores
A Data Store is simply a key-value pair stored in the database that is available to all records in the system.
Usage
Built-in Examples
Storing Strings
// Store the current log count
var log_count = bond.getData('log_count');
bond.setData('log_count', parseInt(log_count, 10) + 1)Storing Objects
dataStore API
get(document, key [, default_value])
getAsObject(document, key [, default_object]) {
remove(document, key)
removeAll(document)
set(document, key, value [, description])
setFromObject(document, key, obj [, description])
Was this helpful?
