Feature: Filter getReactionCounts by Reaction Type
Description:
Extend the getReactionCounts method to accept an optional array of reaction types to filter by. Instead of returning all counts, it only returns counts for the specified reactions.
Acceptance Criteria:
Feature: Filter
getReactionCountsby Reaction TypeDescription:
Extend the
getReactionCountsmethod to accept an optional array of reaction types to filter by. Instead of returning all counts, it only returns counts for the specified reactions.Acceptance Criteria:
Model.getReactionCounts(reactableId, reactions?: string[]).reactionsarray is provided, the aggregation pipeline filters to only those types.reactionsisundefined, behavior is unchanged (returns all).