In gen 1 http request we have
functions.
runWith({secrets: ["WA_TOKEN"]})
.https.onRequest
What is the equivalent to this with gen 2 background cloud function say example
exports.myfunction = onDocumentWritten("users/marie", (event) => {
// Your code here
});