queryPublishedContent( )


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 queryPublishedContent() function builds a query to retrieve a list of translation content items and returns a PublishedContentQueryBuilder 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 PublishedContentQueryBuilder functions onto the query. PublishedContentQueryBuilder functions enable you to filter, sort, and control the results that queryPublishedContent() returns.

queryPublishedContent() runs with the following PublishedContentQueryBuilder defaults which you can override:

The following query filter fields are required:

  • schemaKey.appId
  • schemaKey.entityType
  • schemaKey.scope

The following PublishedContentQueryBuilder functions are supported for queryPublishedContent(). For a full description of the operations object, see the object returned for the items property in PublishedContentQueryResult.

PROPERTYSUPPORTED FILTERS & SORTING
_ideq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
schemaKey.appIdascending(),descending()
schemaKey.entityTypeascending(),descending()
schemaKey.scopeascending(),descending()
entityIdascending(),descending()
localeascending(),descending()
parentEntityIdascending(),descending()
Permissions
Wix Multilingual - Translation Content + Published Content Read
Learn more about app permissions.
Method Declaration
Copy
Request
This method does not take any parameters
Returns
Was this helpful?
Yes
No