reshape( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Reshapes a new field based on the specified expression. The result does not include the field used in the expression. For example, reshaping basePrice to add tax results in a new field totalPrice that does not include basePrice or tax.

Method Declaration
Copy
Method Parameters
expressionExpression

Expression to resolve. The result of the expression becomes the value of the new field. Learn more about using expressions in aggregation pipelines.


resultFieldNamestring

Field to create in the result.

Learn more about field keys.

Returns
Return Type:ProjectStage
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?