MCPcopy Index your code
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / insertVisit

Function insertVisit

appengine/datastore/app.js:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 * @param {object} visit The visit record to insert.
40 */
41const insertVisit = visit => {
42 return datastore.save({
43 key: datastore.key('visit'),
44 data: visit,
45 });
46};
47
48/**
49 * Retrieve the latest 10 visit records from the database.

Callers 1

app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected