Ask Your Question
4

What is the path for Firestore that can be used in cloud functions?

asked 2021-07-25 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-05-26 11:00:00 +0000

qstack gravatar image

The path for Firestore that can be used in cloud functions is:

admin.firestore().collection('collectionName').doc('documentId')

or

admin.firestore().doc('collectionName/documentId')

where admin.firestore() is used to initialize the Firestore database and collectionName is the name of the Firestore collection and documentId is the unique identifier for the document.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-07-25 11:00:00 +0000

Seen: 1 times

Last updated: May 26 '22