This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Lists the fields to return in the search results.
The fields()
method specifies which fields to return in the search results.
You can use include()
together with fields()
to get referenced items.
When fields()
receives an empty or an invalid field, the search behaves as follows:
_id
field is returned.
Fields to return.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.