@recative/databaseInterfacesICollectionOptionsOn this pageICollectionOptions <T>Options for initialize a collection.@fieldunique - array of property names to define unique constraints for@fieldexact - array of property names to define exact constraints for@fieldindices - array property names to define binary indexes for@fieldasyncListeners - whether listeners are called asynchronously@fielddisableMeta - set to true to disable meta property on documents@fielddisableChangesApi - set to false to enable Changes Api@fielddisableDeltaChangesApi - set to false to enable Delta Changes API (requires Changes API, forces cloning)@fieldautoupdate - use Object.observe to update objects automatically@fieldclone - specify whether inserts and queries clone to/from user@fieldcloneMethod - ‘parse-stringify’, ‘jquery-extend-deep’, ‘shallow’, ‘shallow-assign’@fieldttl - age of document (in ms.) before document is considered aged/stale.@fieldttlInterval - time interval for clearing out ‘aged’ documents; not set by default.Index PropertiesadaptiveBinaryIndicesasyncListenersautoupdateclonecloneMethoddisableChangesApidisableDeltaChangesApidisableFreezedisableMetaexactindicesserializableIndicestransactionalttlttlIntervaluniqueProperties adaptiveBinaryIndicesadaptiveBinaryIndices: booleanasyncListenersasyncListeners: booleanautoupdateautoupdate: booleancloneclone: booleancloneMethodcloneMethod: CloneMethoddisableChangesApidisableChangesApi: booleandisableDeltaChangesApidisableDeltaChangesApi: booleandisableFreezedisableFreeze: booleandisableMetadisableMeta: booleanexactexact: string[]indicesindices: DotNotation<T>[]serializableIndicesserializableIndices: booleantransactionaltransactional: booleanoptionalttlttl?: numberoptionalttlIntervalttlInterval?: numberuniqueunique: DotNotation<T>[]
Options for initialize a collection.
unique - array of property names to define unique constraints for
exact - array of property names to define exact constraints for
indices - array property names to define binary indexes for
asyncListeners - whether listeners are called asynchronously
disableMeta - set to true to disable meta property on documents
disableChangesApi - set to false to enable Changes Api
disableDeltaChangesApi - set to false to enable Delta Changes API (requires Changes API, forces cloning)
autoupdate - use Object.observe to update objects automatically
clone - specify whether inserts and queries clone to/from user
cloneMethod - ‘parse-stringify’, ‘jquery-extend-deep’, ‘shallow’, ‘shallow-assign’
ttl - age of document (in ms.) before document is considered aged/stale.
ttlInterval - time interval for clearing out ‘aged’ documents; not set by default.