getDocFromServer
Reads the document referred to by this DocumentReference
from the server.
Returns an error if the network is not available.
function getDocFromServer<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>): Promise<DocumentSnapshot<AppModelType, DbModelType>>;
§
getDocFromServer<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>): Promise<DocumentSnapshot<AppModelType, DbModelType>>
[src]§Parameters
§
reference: DocumentReference<AppModelType, DbModelType>
[src]§Return Type
§
Promise<DocumentSnapshot<AppModelType, DbModelType>>
[src]A Promise
resolved with a DocumentSnapshot
containing the
current document contents.