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
.
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
schemaKey.appId | ascending() ,descending() |
schemaKey.entityType | ascending() ,descending() |
schemaKey.scope | ascending() ,descending() |
entityId | ascending() ,descending() |
locale | ascending() ,descending() |
parentEntityId | ascending() ,descending() |