> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Items

# Type: WixDataAggregatePipelineExpressions

# Action: subtract

# Link: https://dev.wix.com/docs/sdk/data-items-sdk/data/items/wix-data-aggregate-pipeline-expressions/subtract.md

## Description: Subtracts 1 expression from another.

The `subtract()` method configures the aggregation pipeline to subtract the second expression from the first expression.

## Schema:

```json
 Method: subtract(first, second)
 Description: Subtracts 1 expression from another.  The `subtract()` method configures the aggregation pipeline to subtract the second expression from the first expression.
 Method parameters:
   param name:  first | type: Expression | description:  Expression to subtract `second` from. Expression must resolve to a number. 
   param name:  second | type: Expression | description:  Expression to subtract from `first`. Expression must resolve to a number. 
 Return type: REFERENCE<SubtractExpression>

```