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(),gt(),lt(),le(),ge(),ascending(),descending() |
schemaId | eq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending() |
entityId | eq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending() |
locale | eq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending() |
parentEntityId | eq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending() |
publishStatus | eq(),ne(),exists(),in(),hasSome(),ascending(),descending() |
previewField | eq(),ne(),exists(),in(),hasSome(),startsWith(),gt(),lt(),le(),ge(),ascending(),descending() |
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.