Cloud Firestore で collection の基本操作
Cloud Firestore使ったときのメモ 検証用のメモだからダブルクウォートとシングルクウォートが混ざってるのは気にするな Create const docRef = await addDoc(collection(db, "collection"), { title: "title", description: "description", created_at: new Date(), }); console.log("Document written with ID: ", docRef.id); Read // 単一の取得 const ref = doc(db, "collect…
2022/06/05 15:56