I watched the tutorial for NodeJS + Firestore but i'm stuck new 4:50 mark where i need to type in db.collection.
video: Getting Started with Cloud Firestore with Node.js - Firecast https://www.youtube.com/watch?v=Z87OZtIYC_0
Steps:
create NodeJS project
npm install firebase-admin
const admin = require('firebase-admin'); admin.initializeApp({ credential: admin.credential.applicationDefault() }); const db = admin.firestore(); db.collection();
Error: "unresolved function or method collection()"
Firebase version: firebase-admin": "^5.13.1"
firestore()/db indeed does not have the collections method. what am i missing?