Open
Description
hello
Do you want to request a feature or report a bug?
feature
What is the current behavior?
data type
db.collection("posts").doc("QyJJKtQhNA2QeHFVqfCR") = {
content: String,
author: Reference // 'users/jRjjlMyTBENjvln3pQpGwKgdvAa2'
}
query
{ collection: 'posts', doc: postId }
result
{ content: '', author: DocumentReference }
A DocumentReference refers to a document location in a Firestore database and can be used to write, read, or listen to the location. The document at the referenced location may or may not exist. A DocumentReference can also be used to create a CollectionReference to a subcollection.
What is the expected behavior?
{ content: '', author: { displayName: '', avatarUrl: '' } }
Activity