Count
Count how many profiles are indexed in Apache Unomi.
Usage
unomi.profile.count();
Response
{
success: <boolean>,
status: <number>,
data: <number>
}
Real World Example
async function countProfiles() {
try {
const profilesNumber = await unomi.profile.count();
console.log(`There are ${profilesNumber.data} profiles!`);
} catch (err) {
console.error(err);
}
}
Last updated
Was this helpful?