firestore.collection("records").doc("12345")
.onSnapshot(function(doc) {
console.log("Current data: ", doc.data());
this code currently shows the name of the field and then what is in the field but only does so in the console. When I try and display it in the website it comes up with [object object].
I just want to be able to display the field name. Any suggestions? Thanks
I would like it to display
DOB: 26/03/18
age: 56
firstName: Joe
from: New York
job: builder
surname: Bloggs