listDocuments method

JSPromise<JSArray<DocumentReference>> listDocuments()

Retrieves the list of documents in this collection.

The document references returned may include references to "missing documents", i.e. document locations that have no document present but which contain subcollections with documents. Attempting to read such a document reference (e.g. via .get() or .onSnapshot()) will return a DocumentSnapshot whose .exists property is false.

@return {Promise<DocumentReference[]>} The list of documents in this collection.

Implementation

external JSPromise<JSArray<DocumentReference>> listDocuments();