Add

Copied!
( value_1, value_2, ... )

Description

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

Parameters

Parameter Type Definition and Requirements

value

Number

One or more numbers to sum.

Returns

A number which is the sum of all values.

Examples

The following query returns the sum of 100 and 10:

Copied!
(100, 10)
110
Query metrics:
  •    bytesIn:  16

  •   bytesOut:  16

  • computeOps:   1

  •    readOps:   0

  •   writeOps:   0

  •  readBytes:   0

  • writeBytes:   0

  •  queryTime: 2ms

  •    retries:   0

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!