Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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]

§Type Parameters

§
AppModelType
[src]
§
DbModelType extends DocumentData
[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.