AllDocuments (NotesDatabase - JavaScript)

Read-only. An unsorted collection containing all the documents in a database.

Defined in

NotesDatabase

Syntax

getAllDocuments() : NotesDocumentCollection

Usage

The FTSearch and search methods return smaller collections of documents that meet specific criteria.

Using the AllDocuments property is more efficient than using the search method with an @All formula.

The database must be open to use this property.

Examples

This computed field displays the number of documents in the current database.
return database.getAllDocuments().getCount().toFixed()