follows module acts on your own follow graph — the graph of the logged-in token holder. Use it to list the users you follow, list your followers, count either, and delete one of your follow relationships by its record ID.
fetchFollowing
Returns a paginated list of users you follow.Optional search term. Filters the list to users whose username or name contains this text (case-insensitive). When omitted, no filtering is applied.
Restricts which field
query matches against — username or name. When omitted, query matches either field.Promise<PaginatedResponse<FollowListItem>>, where FollowListItem is { followId, user, followedAt }.
fetchFollowers
Returns a paginated list of your followers.Optional search term. Filters the list to users whose username or name contains this text (case-insensitive). When omitted, no filtering is applied.
Restricts which field
query matches against — username or name. When omitted, query matches either field.Promise<PaginatedResponse<FollowListItem>>
fetchFollowingCount
Returns the number of users you follow.Promise<{ count: number }>
fetchFollowersCount
Returns the number of your followers.Promise<{ count: number }>
deleteFollow
Deletes one of your follow relationships by its follow ID.Promise<void>
