Members
Type:
CouchbaseODM
Type:
CouchbaseODM
Type:
Document
Type:
Document
Type:
ErrorList
Type:
ErrorList
Type:
ErrorList
Type:
ErrorList
Type:
Hook
Type:
Hook
Type:
IncrementalKey
Type:
IncrementalKey
Type:
Instance
Type:
Instance
Type:
Key
Type:
Key
Type:
Model
Type:
Model
Type:
ModelManager
Type:
ModelManager
Type:
ModelManager
Type:
Operation
Type:
Operation
Type:
RefDocKey
Type:
RefDocKey
Type:
StorageAdapter
Type:
StorageAdapter
Type:
UUID4Key
Type:
UUID4Key
Constructor
- options optional
- Type:
Object - bucket
- Type:
Bucket must be instance of Couchbase.Bucket (from official nodejs couchbase sdk)
- key optional
- Type:
Key - Default:
{UUID4Key} The strategy used for document's
keygeneration. Must inherit from baseKeyclass- refDocKey optional
- Type:
RefDocKey - Default:
RefDocKey The strategy used for reference document
keygeneration. Must inherit from baseRefDocKeyclass- timestamps optional
- Type:
boolean - Default:
true Adds automatically handled timestamp schema properties:
created_at,updated_atand ifparanoidoption is true,deleted_atproperty- paranoid optional
- Type:
boolean - Default:
false if
trueis set, a document is not actually removed frombucketbut ratherdeleted_atflag on the document is set. aka.soft delete- camelCase optional
- Type:
boolean - Default:
false if
trueis set, camel case notation is used for document's internal properties.- schemaSettings optional
- Type:
Object allows to modify default values used for document's
keygeneration and document's property names handled by ODM- key optional
- Type:
Object - prefix optional
- Type:
string - Default:
defaults to Model's name you most likely do not want to set default value at
CouchbaseODMconstructor level- postfix optional
- Type:
string - Default:
"" - delimiter optional
- Type:
string - Default:
"" - caseSensitive optional
- Type:
boolean - Default:
true - doc optional
- Type:
Object - idPropertyName optional
- Type:
string - Default:
"_id" _idcontains generated id of document (not whole document's key)- typePropertyName optional
- Type:
string - Default:
"_type" _typecontains the name of a Model- hooks optional
- Type:
Object allows to add one or more hooks of a hook type (eg.
afterValidate)- classMethods optional
- Type:
Object custom method definitions which are bound to a Model.
- instanceMethods optional
- Type:
Object custom method definitions which are bound to a Instance.
- indexes optional
- Type:
Object - refDocs optional
- Type:
Object Global reference document definitions. Refdoc is a document which reference parent document with its string value(=key). See RefDoc Indexes tutorial for more details
CouchbaseODM
main enterance to the couchbase-odm