I have a document with some fields. I want to get the amount of fields.
For Example:
I will get 5.
My Code:
const data = await firestore()
.collection(groupID)
.doc('jobs-list')
.get()
.then((value) => {
console.log(value.data.length); // Returns 0
console.log(value.data()["1"]);
})
I want to log 5
How do I do this?
