Add Document with Custom ID #7630
Replies: 1 comment
-
I forgot setting the document by reference is still the way to go... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
In the firebase web library, when adding a document, you can specify what the document ID should be with something like the following:
await setDoc(doc(usersRef, uid), data)
I noted that the docs say the ID is automatically generated, but I need to link the ID to a Firebase Auth ID, so how can I specify the ID on a doc create?
Beta Was this translation helpful? Give feedback.
All reactions