Home > Software engineering >  What is a boilerplate code for connecting to Cloud Firestore from within Cloud Function?
What is a boilerplate code for connecting to Cloud Firestore from within Cloud Function?

Time:03-30

I'm looking for boilerplate snippets for both index.js and package.json to connect from my Node.js cloud function to Cloud Firestore database under the same project with a simple read/update request as example.

ps I'm using Cloud Functions inline editor.

CodePudding user response:

Posting link from one of the comments that helped me.

Initialize Cloud Firestore

  • Related