@Louis101 wrote:
I am saving data to firebase. However, I want to save it to the logged in user node, at the moment the data is being saved to its own node. I have some code what I have been recommened which I thought would work.
this.diary = db.list(‘UID’);//this is where I think I am going wrong?
let user = firebase.auth().currentUser;handler: data=> {
this.diary.child(user.uid).set({
country: data.a,
city: data.b,
month: data.c,
day: data.d,
time: data.e
})with the code above now I am getting the error ‘child does not exist on type firebaselistobservable’ ??
Any help would be great thanks.
Posts: 1
Participants: 1