getDocument method

  1. @JS('get')
JSPromise<DocumentSnapshot> getDocument(
  1. DocumentReference documentRef
)

Reads the document referenced by the provided DocumentReference. Holds a pessimistic lock on the returned document.

@param documentRef A reference to the document to be read. @return A DocumentSnapshot for the read data.

Implementation

@JS('get')
external JSPromise<DocumentSnapshot> getDocument(
  DocumentReference documentRef,
);