Skip to content

How to generate document id? #106

Answered by tylim88
dongumayagay asked this question in Q&A
Discussion options

You must be logged in to vote

in firebase sdk its

const db = firebase.firestore();
const ref = db.collection('your_collection_name').doc();

how about in firelord?

const doc = example.doc(example.collection())

const id = doc.id

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dongumayagay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants