Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70432

Pushing data to logged in user node in firebase

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 70432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>