0.0.1 • Published 9 years ago

dpd-count v0.0.1

Weekly downloads
4
License
Apache License Ve...
Repository
github
Last release
9 years ago

dpd-count

Deployd plugin that makes it easy to count documents.

Warning! This plugin adds an 'ON COUNT' event to all collections! Make sure to restrict access there!

Why

Deployd is built so that only 'root' can count documents. But sometimes it can be useful to count documents that match a query from frontend, too.

Usage

dpd.mycollection.get({id: "count"}, function(res) {
    console.log(res) // res === {"count": 10200}
})
0.0.1

9 years ago