Unomi Node
1.0.1
1.0.1
  • Apache Unomi Node.js SDK
  • Contribute
  • API
    • Profile
      • Create
      • Delete
      • Get
      • Count
      • Existing Properties
      • All Properties
      • Sessions
      • Get by Single Property
      • Query
    • Rule
      • Create
      • Get
      • Get All
    • Segment
Powered by GitBook
On this page
  • Usage
  • Response
  • Real World Example

Was this helpful?

  1. API
  2. Profile

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);
  }
}
PreviousGetNextExisting Properties

Last updated 5 years ago

Was this helpful?