queryContents( )


Developer Preview

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

Creates a query to retrieve a list of translation content items.

The queryContents() function builds a query to retrieve a list of translation content items and returns a ContentsQueryBuilder object.

The returned object contains the query definition, which is used to run the query using the find() function.

You can refine the query by chaining ContentsQueryBuilder functions onto the query. ContentsQueryBuilder functions enable you to filter, sort, and control the results that queryContents() returns.

queryContents() runs with the following ContentsQueryBuilder defaults which you can override:

The following ContentsQueryBuilder functions are supported for queryContents(). For a full description of the operations object, see the object returned for the items property in ContentsQueryResult.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Wix Multilingual - Translation Content + Published Content Read
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
optionsQueryContentsOptions
Returns
Did this help?