0

How can i change this unclear field (Medu9EJxCvMNCaPpmLH) to user id?

enter image description here

this is the code-

enter image description here

Dharmaraj
  • 47,845
  • 8
  • 52
  • 84
idanr
  • 11
  • 2
  • You cannot change documentId's. If you want to make it different, the document will need to be read in and then written back out with the updated documentId. If you are just asking how to generate documentId's, see the above link. – Jay Jul 15 '21 at 20:34

1 Answers1

0

Firebase documentId's cannot be changed.

If you want to make it different, the document will need to be read in and then written back out with the updated documentId.

If you are just asking how to generate custom documentId's, see Setting Custom DocumentId

Jay
  • 34,438
  • 18
  • 52
  • 81