$searchAndCount

Filter and retrieve datas and count from the table based on the provided conditions.

Query
Parameter's

$where

<StaticProps>

For example:

var [ members,count ] = await Member.$searchAndCount({
    $where: {
        username: {
            $startsWith: 'a'
        }
    }
});

Last updated