Skip to main content

Overview

atRiskAll() is an async generator that yields all at-risk users above a threshold, handling pagination automatically. Use it when you need to process the full list without managing offset / total yourself.

Signature

AtRiskAllOptions

number
Minimum score to include (0–1). Default: 0.5.
string
Filter by plan.
number
Number of users to fetch per internal page. Default: 100.

Examples

Process all at-risk users

Collect into an array

Early exit

With transformations

vs atRisk()