How to insert a field in a Firebase document by Ionic Angular code?

Asked

Viewed 84 times

1

I am not able to insert a field with the user id in a document, I need the user.uid to become a field of type Boolean

I tried that, but I miss the point:

let{
user.uid : true
}

I also tried to add the user.uid a variable before, but he entered the variable name.

  • 1

    puts the complete code you are using so we can help better, probably the user has no uid so the error, try to make a console.log(JSON.stringify(user)) to see what’s in this user

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.