Navigation
This version of the documentation is archived and no longer supported.

$subtract (aggregation)

$subtract

Takes an array that contains a pair of numbers and subtracts the second from the first, returning their difference.