I use a cloud function as a webhook receiver, so every time I get a webhook I want to update firestore with some data for example. I don't get how to use firestore in my clound function.
I tried this:
const admin = require("firebase-admin");
...
admin.initializeApp();
res.send(admin.database().ref("/tmp_list/1uMW9ED3YGMfERHZiKJc").get());
All do not seem to be able to initilise this. I also tried:
admin.initializeApp(functions.config().firebase);