Document Functions
These functions either create new documents or modify existing ones.
.check(id)
const fileCheck = db.check("1234");
console.log(fileCheck);.size()
const dirSize = db.size();
console.log(dirSize);.delete(id)
db.delete("1234");.insert(Object)
.insertBulk([ Objects ])
.update({id, key, child, change, math?})
.mupdate(id, [ Objects ])
.append({ id, key, value, position })
.replicate(id, {to, from, force?})
.set(id, {data})
.undo()
Last updated