The Fauna service will be ending on May 30, 2025.

For more information on the service wind down, see our announcement and the Fauna Service End-of-Life FAQ.

Add

This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics.

Copied!
Add( 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!
Add(100, 10)
110
Query metrics:
  •    bytesIn:  16

  •   bytesOut:  16

  • computeOps:   1

  •    readOps:   0

  •   writeOps:   0

  •  readBytes:   0

  • writeBytes:   0

  •  queryTime: 2ms

  •    retries:   0

\