Set
Set methods and properties.
Description
A Set represents a group of values, for example documents in a Collection. When a Set is returned from a query it is materialized into a page of results that includes a subset of the Set with a pagination cursor.
Static methods
Method | Description |
---|---|
Get the next or previous page of Set values that correspond to a previously acquired pagination token. |
Instance methods
Method | Description |
---|---|
Aggregate all the elements in the Set. |
|
Test if any element passes the test of the given function. |
|
Get the number of values in a Set. |
|
Get unique elements. |
|
Drop elements given a count. |
|
Test if every set element passes the given function test. |
|
Get the first value in the Set. |
|
Get the first matching value from the Set. |
|
Call the reducer for every element of an set. |
|
Collapses elements in the set, traversing right to left, give a reducer. |
|
Iterates over all values in a Set, executes a function with each value, and returns nothing. |
|
Test if the set includes the given value. |
|
Test if the set is empty. |
|
Get the last element in a set. |
|
Get the last element that matches the given predicate. |
|
Test if the set is empty. |
|
Get the first page of size Set values. |
|
Apply a reducer Function to each set element, from right to left, to get a single value. |
|
Reverse the order of the set elements. |
|
Get an ordered set of values given beginning and ending values. |
|
Get a subset of matching Set values. |
|
Convert a set to a String representation. |
|
Get the next or previous page of Set values that correspond to a previously acquired pagination token. |
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!