# new VotesQuery(ids)
Creates a VotesQuery
Parameters:
Name | Type | Description |
---|---|---|
ids |
CommunitiesIds | Entity IDs. |
- Source:
Methods
# (static) forActivity(id) → {VotesQuery}
Get all users voted to activity with ID.
Parameters:
Name | Type | Description |
---|---|---|
id |
string | Activity ID. |
- Source:
Returns:
- New query.
- Type
- VotesQuery
# withPollOptionId(pollOptionId) → {VotesQuery}
Get only users reacted with specific poll option.
Parameters:
Name | Type | Description |
---|---|---|
pollOptionId |
string | Poll option ID to filter by. |
- Source:
Returns:
- Same Query instance.
- Type
- VotesQuery