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
key
generation. Must inherit from baseKey
class- refDocKey optional
- Type:
RefDocKey
- Default:
RefDocKey
The strategy used for reference document
key
generation. Must inherit from baseRefDocKey
class- timestamps optional
- Type:
boolean
- Default:
true
Adds automatically handled timestamp schema properties:
created_at
,updated_at
and ifparanoid
option is true,deleted_at
property- paranoid optional
- Type:
boolean
- Default:
false
if
true
is set, a document is not actually removed frombucket
but ratherdeleted_at
flag on the document is set. aka.soft delete
- camelCase optional
- Type:
boolean
- Default:
false
if
true
is set, camel case notation is used for document's internal properties.- schemaSettings optional
- Type:
Object
allows to modify default values used for document's
key
generation 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
CouchbaseODM
constructor 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"
_id
contains generated id of document (not whole document's key)- typePropertyName optional
- Type:
string
- Default:
"_type"
_type
contains 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