getDocFromCache
Reads the document referred to by this DocumentReference
from cache.
Returns an error if the document is not currently cached.
function getDocFromCache<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>): Promise<DocumentSnapshot<AppModelType, DbModelType>>;
§
getDocFromCache<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.