const messagesRef = collection(db, 'messages')
const q = query(messagesRef, orderBy('createdAt'), limit(25))
const [messages, loading] = useCollectionData(q)
// messages print fields of documents without id
Need to get Id of documents, I guess there's a way to pass options in that hook but dk how.
If there's no way to get Id using that hook then what's the option?