admin.initializeApp();
functions.https.onRequest(async (req, res) => { ... })
const writeResult = await ...