I have a collection named "users". I need to save 1 user and all data with this user.
const user= db.collection('users').where(firebase.firestore.FieldPath.documentId(), '==', presenceObj.data().UserId).get();
But does not receive the data.
console.log(user.data().name);
Doesn't write anything on console.