I have the following query that returns me a promise, I want to show only the contents of the [[PromiseValue]] I have tried async and await but can't find the solution
This is the code:
` const fdsfsddsf = (data) =>
db
.collection("socios")
.where("activity", "==", "true")
.orderBy("num")
.get()
.then((response) => {
const arrayUnidades = [];
map(response?.docs, (unidad) => {
const data = unidad.data();
data.id = unidad.id;
arrayUnidades.push(data);
});
return arrayUnidades;
});
console.log(fdsfsddsf);
promise {<pending>}
__proto__: Promise
[[PromiseStatus]]: "resolved"
[[PromiseValue]]: Array(6)`