Skip to main content

ICollectionOptions <T>

Options for initialize a collection.

@field

unique - array of property names to define unique constraints for

@field

exact - array of property names to define exact constraints for

@field

indices - array property names to define binary indexes for

@field

asyncListeners - whether listeners are called asynchronously

@field

disableMeta - set to true to disable meta property on documents

@field

disableChangesApi - set to false to enable Changes Api

@field

disableDeltaChangesApi - set to false to enable Delta Changes API (requires Changes API, forces cloning)

@field

autoupdate - use Object.observe to update objects automatically

@field

clone - specify whether inserts and queries clone to/from user

@field

cloneMethod - ‘parse-stringify’, ‘jquery-extend-deep’, ‘shallow’, ‘shallow-assign’

@field

ttl - age of document (in ms.) before document is considered aged/stale.

@field

ttlInterval - time interval for clearing out ‘aged’ documents; not set by default.

Index

Properties

adaptiveBinaryIndices

adaptiveBinaryIndices: boolean

asyncListeners

asyncListeners: boolean

autoupdate

autoupdate: boolean

clone

clone: boolean

cloneMethod

cloneMethod: CloneMethod

disableChangesApi

disableChangesApi: boolean

disableDeltaChangesApi

disableDeltaChangesApi: boolean

disableFreeze

disableFreeze: boolean

disableMeta

disableMeta: boolean

exact

exact: string[]

indices

indices: DotNotation<T>[]

serializableIndices

serializableIndices: boolean

transactional

transactional: boolean

optionalttl

ttl?: number

optionalttlInterval

ttlInterval?: number

unique

unique: DotNotation<T>[]