MCPcopy Create free account
hub / github.com/Orgnise/webapp / main

Function main

scripts/get-api-users.ts:7–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5// npm run script get-api-users
6// tsx ./scripts/get-api-users.ts
7async function main() {
8 const client = await mongodb;
9 const usersCollection = client.db(databaseName).collection("users");
10
11 console.log("\n-------------------- Users --------------------\n");
12
13 const users = await usersCollection.find().toArray();
14 console.log(users.map((user) => user.email).join(",\n"));
15 console.log("\n------------------------------------------------\n");
16
17 client.close();
18 process.exit(0);
19}
20
21
22main();

Callers 1

get-api-users.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…