Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 295 Bytes

Count.md

File metadata and controls

24 lines (15 loc) · 295 Bytes

count()

Count documents in collection

Usage

const foo = data.model('foo', {name: String});

// Count all documents
await data.count(foo);

// Count all documents with query
await data.count(foo, {name: data.match('jo', 'i')});

Arguments

  • number

Return

number