In MongoDB, the $pow
aggregation pipeline operator raises a number to the specified exponent and returns the result
$pow
accepts two expressions, supplied in an array. The first one is the number, and the second is the exponent. Both can be any valid expression, as long as they resolve to a number.