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
.
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
schemaId | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
entityId | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
locale | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
parentEntityId | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
publishStatus | eq() ,ne() ,exists() ,in() ,hasSome() ,ascending() ,descending() |
You can only call this method when authenticated as a Wix app or Wix user identity.