Overview
Returns a function that fetches the paginated list of accepted connections for any user, identified byuserId. Authentication is optional — the endpoint works without a token. When the caller is signed in, any user with a block between them and the caller, in either direction, is excluded from the results. Block filtering requires the moderation bundle.
For fetching your own connections, see useFetchConnections.
Usage Example
Parameters
The hook returns a function. That function accepts:Optional search term. Filters the list to connections whose connected user’s 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.Returns
Returns aPaginatedResponse containing an array of established connections:
Related
- useFetchConnections — fetch the current user’s own connections
- useFetchConnectionsCountByUserId — get count for any user

