Arithmetic functions
$add
Description: Returns the sum of the attribute and the passed-in JSON number.
{"experian_business_facts.employee_size": { "$add": 10 }}
$subtract
Description: Returns the difference of the attribute and the passed-in JSON number.
{"experian_business_facts.employee_size": { "$subtract": 5 }}
$multiply
Description: Returns the product of the attribute and the passed-in JSON number.
{"experian_business_facts.sales_revenue": { "$multiply": 1.5 }}
$divide
Description: Returns the quotient of the attribute and the passed-in JSON number.
{"experian_business_facts.sales_revenue": { "$divide": 12 }}
Updated over 1 year ago