Count how many profiles are indexed in Apache Unomi.
unomi.profile.count();
{ success: <boolean>, status: <number>, data: <number> }
async function countProfiles() { try { const profilesNumber = await unomi.profile.count(); console.log(`There are ${profilesNumber.data} profiles!`); } catch (err) { console.error(err); } }
Last updated 5 years ago