Add

Copied!
( value_1, value_2, ... )

Description

The Add function returns the sum of its numeric arguments. It can take a single value or a list of values. Providing a single number returns the number.

Parameters

Argument Type Definition and Requirements

value

Number

One or more numbers to sum.

Returns

A number which is the sum of all values.

Examples

The query below returns the sum of 100 and 10.

Copied!
client.query(q.(100, 10))
.then((ret) => console.log(ret))
110

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!