I'm newbie on cloud function. I have some confusions.
- Is there any difference between admin.firestore and functions.firestore?
- Is admin.database for real-time database?
- So if cloud functions are basically written as JavaScript or TypeScript in Node.js environment, then I can write them with JavaScript. But documentation made me confused about that. Because whenever I read the documentation, it gives things different. For example,
Above code to get a document, it uses
document('some/doc')
.
But, above code it uses
doc('doc')
to achieve the same functionality. If all of them come form firestore, why do both differ each other?
Can someone help me to understand these questions? Thank you for all your supports.