// Add new contactapp.post('/contacts', (req, res) => { firebaseHelper.firestore .creatNewDocument(db, contactsCollection, req.body); res.send('Create a new contact');})Building a “Serverless” RESTful API with Cloud Functions, Firestore and Express97126Dale Nguyenansi devFollowSep 2, 2018 · 1 min readThe function name should be changed due to API change in the latest version.