Documents
Copied!
Documents( collection )
Description
The Documents
function returns the set of documents that exist in the
specified collection
.
Before the Documents
function was introduced, you needed to create an
index just to facilitate retrieving documents from a collection. See the
Indexing tutorials for
details.
Examples
The following query returns three documents in the Letters
collection
(established as part of the
Index tutorials):
{
after: [ Ref(Collection("Letters"), "104") ],
data: [
Ref(Collection("Letters"), "101"),
Ref(Collection("Letters"), "102"),
Ref(Collection("Letters"), "103")
]
}
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!