You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An key named ttl (Time-To-Live) will delete the document when the time is equal or greater than the current time.
deleteDoc
Option
Type
Default Value
fn
Function
(doc)=>{}
cb
Function
()=>{}
findDoc
Option
Type
Default Value
fn
Function
(doc)=>{}
cb
Function
()=>{}
hasDoc
Option
Type
Default Value
fn
Function
(doc)=>{}
cb
Function
()=>{}
updateDoc
Option
Type
Default Value
params
document
{}
updateparams
document
{}
cb
Object[]
(this)=>{}
deleteColection
Option
Type
Default Value
collectionName
String
index
cb
Function
()=>{}
getCollection
Option
Type
Default Value
fn
Function
(doc)=>{}
cb
Function
(document[])=>{}
Plugins
This lies on the class QuipoDB itself
importQuipoDBfrom"quipodb";importyourPluginfrom"your-plugin-package";// Or a classconstdb=newQuipoDB();constplugin=newyourPlugin();db.registerPlugin(plugin);