Global
Schema(obj, options)
Schema class
Parameters
obj: Object
, The schema to define
options: Object
, Schema options: duplicate, verify, indices, methods
addVerify(script, bindings)
Add verify
Parameters
script: Script | String
, Verify script, must pass to get or save document
bindings: Object
, Bindings available in the script
addIndex(index)
Add index
Parameters
index: CompositeIndex | MixedIndex
, Composite or mixed index
addMethod(name, method)
Add method
Parameters
name: String
, Name of the method
method: function
, Method