Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/serverless/examples
/ performQuery
Function
performQuery
aws-node-mongodb-atlas/handler.js:41–50 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
39
};
40
41
const
performQuery =
async
() => {
42
const
pets = db.collection(
'pets'
);
43
44
const
newPet = getPet();
45
46
return
{
47
insertedPet: newPet,
48
mongoResult:
await
pets.insertOne(newPet),
49
};
50
};
51
52
const
app = express();
53
Callers
1
handler.js
File · 0.70
Calls
1
getPet
Function · 0.85
Tested by
no test coverage detected