field( )


Developer Preview

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

Specifies which field to resolve.

The field() method configures the aggregation pipeline to resolve the value of the specified field as an expression.

Method Declaration
Copy
Method Parameters
fieldPathstring

Path to the field containing the value to resolve. Use dot notation to specify nested fields. For example, user.name or product.price.

Returns
Return Type:FieldExpression
Errors

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

Did this help?