Skip to main content

A ZenqlQuery allows us to provide a ZenQL statement to the entries.search() method in a Delivery API client. The returned object allows us to add additional refinements to the search before the request for content is made, such as specifying a pageIndex or fields to return.

Call signature

TypeScript
new ZenqlQuery(zenql: string): ZenqlQuery

Parameters

NameTypeDescription
zenqlstringA ZenQL statement containing the search criteria for returning entries

Returns

An instance of ZenqlQuery we can set specific properties and use with entries.search()

Properties

NameTypeDescription
zenqlstringA ZenQL statement containing the search criteria for returning entries
pageIndexnumberThe index of subsequent pages of search results (required if > 0)
pageSizenumberThe size of each page of search results
fieldLinkDepths{ string: number }Object containing field paths to resolve linked entries for and the link depth to resolve the field to
fieldsstring [ ... ]A list of entry fields that will be retrieved (if the returned entries contain them)

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request