$count

Count the total number of records in the table based on the provided conditions.

Query
Parameter's

$where

<StaticProps>

$options

<FindOptions>

var count = await Member.$count({
    $where: {
        userId: {
            $endsWith: '9'
        }
    },
    $options: {
        $logging(sql, benchmark) {
            console.log(sql,benchmark);  
        },
    }
});

Last updated