Count
Count( arrayOrSet )
Description
The Count
function returns the number of items that exist in
arrayOrSet
, which is an Array,
Page, or Set.
The run time of To work around this, you may specify a larger query timeout via the driver that you are using. |
Returns
The Number of items in arrayOrSet
.
Examples
The following query returns the number of items in the provided array:
client.query(
q.Count([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
)
.then((ret) => console.log(ret))
10
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!