unreadExists
UnreadExists is a boolean predicate used in software systems to indicate whether there exists at least one unread item in a collection, such as emails, messages, notifications, or tasks. It is commonly exposed as a function, API endpoint, or query clause that can be evaluated without retrieving the full set of items.
The predicate typically accepts context parameters such as a user identifier, a container or folder identifier,
Example in SQL: SELECT EXISTS (SELECT 1 FROM messages WHERE user_id = ? AND is_read = FALSE); In a
Usage and performance: unreadExists is often used to decide whether to fetch full item lists or to
Variants: some systems track per-item read timestamps instead of a boolean; others provide a per-user unread