MCPcopy Create free account
hub / github.com/cursor/community-plugins / getUserFollowing

Function getUserFollowing

apps/cursor/src/data/queries.ts:97–109  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

95}
96
97export async function getUserFollowing(id: string) {
98 "use cache";
99 cacheLife("hours");
100 cacheTag(`following-${id}`);
101
102 const supabase = await createClient();
103 const { data, error } = await supabase
104 .from("followers")
105 .select("following:following_id(id, name, image, slug)")
106 .eq("follower_id", id);
107
108 return { data, error };
109}
110
111async function fetchCompanyProfile(slug: string, userId?: string) {
112 const supabase = await createClient();

Callers 1

FollowingListFunction · 0.90

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected