MCPcopy Index your code
hub / github.com/serverless/examples / createConn

Function createConn

aws-node-mongodb-atlas/handler.js:36–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34let db;
35
36const createConn = async () => {
37 await client.connect();
38 db = client.db('test');
39};
40
41const performQuery = async () => {
42 const pets = db.collection('pets');

Callers 1

handler.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected