MCPcopy Create free account
hub / github.com/codelitdev/courselit / loadUsersSummary

Function loadUsersSummary

packages/app/components/UsersManager.js:30–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }, [usersPaginationOffset]);
29
30 const loadUsersSummary = async () => {
31 const query = `
32 query {
33 summary: getUsersSummary {
34 count,
35 verified,
36 admins,
37 creators
38 }
39 }
40 `;
41 try {
42 const response = await executeGQLCall(query);
43 if (response.summary) {
44 setUsersSummary({
45 count: response.summary.count,
46 verified: response.summary.verified,
47 admins: response.summary.admins,
48 creators: response.summary.creators,
49 });
50 }
51 } catch (err) {}
52 };
53
54 const loadUsers = async () => {
55 const query = `

Callers 1

UsersManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected