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]

§Type Parameters

§
AppModelType
[src]
§
DbModelType extends DocumentData
[src]

§Parameters

§
reference: DocumentReference<AppModelType, DbModelType>
[src]

§Return Type

§
Promise<DocumentSnapshot<AppModelType, DbModelType>>
[src]

A Promise that resolves with a DocumentSnapshot containing the document contents.