
fn.collection( [uri as String[]] ) as Sequence
Returns all of the documents that belong to the specified collection(s).
fn.head(fn.collection("mycollection"));
=> returns the first document in the "mycollection" collection
const res = [];
const d = fn.subsequence(fn.collection("my-collection"), 1, 2);
for (const x of d) {
res.push(x); };
res;
=> The first 2 documents in the Sequence containing the collection