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

Function getUserFollowers

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

Source from the content-addressed store, hash-verified

81}
82
83export async function getUserFollowers(id: string) {
84 "use cache";
85 cacheLife("hours");
86 cacheTag(`followers-${id}`);
87
88 const supabase = await createClient();
89 const { data, error } = await supabase
90 .from("followers")
91 .select("follower:follower_id(id, name, image, slug)")
92 .eq("following_id", id);
93
94 return { data, error };
95}
96
97export async function getUserFollowing(id: string) {
98 "use cache";

Callers 1

FollowersListFunction · 0.90

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected