Subtract

Copied!
( value_1, value_2, ... )

Description

The Subtract function returns the difference of a list of numbers.

Parameters

Argument Type Definition and Requirements

value

Number

Take the difference of values.

Returns

A number which is the difference.

Examples

The query in the following example returns the result of subtracting 10 from 100:

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

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!