So I am getting Data from a firestore document that comes out to look like this.
{xgvppy7455eeyjllj62yuf: {…}, sorxzerz1ynvy1urmllkdk: {…}, K3N7U2ThQCPVUl4b4rWAfVJiP2d2: {…}}
The encrypted stuff is just the ID I use to identify the fields in the document, now they have objects in them that look like this.
K3N7U2ThQCPVUl4b4rWAfVJiP2d2:
balance: "208843"
description: "Rainy Day"
name: "Rainy Day Pod"
sorxzerz1ynvy1urmllkdk:
balance: "214352"
description: "Sammiched"
name: "Sammich"
How can I access just the value of the description key in both objects?
Aplogies, heres my code for getting the document data.
var docRef = db.collection("pods").doc("K3N7U2ThQCPVUl4b4rWAfVJiP2d2");
docRef.get().then(function(doc) {
if (doc.exists) {
console.log("Document data:", doc.data());