Creates a query to retrieve a list of tags.
The queryTags()
function builds a query to retrieve a list of up to 4,000 tags per language, and returns a TagsQueryBuilder
object.
The returned object contains the query definition, which is typically used to run the query using the find()
function.
You can refine the query by chaining TagsQueryBuilder
functions onto the query. TagsQueryBuilder
functions enable you to sort, filter, and control the results that queryTags()
returns.
queryTags()
runs with these TagsQueryBuilder
defaults that can be overridden:
The following TagQueryBuilder
functions are supported for queryTags()
. For a full description of the Tags object, see the object returned for the items
property in TagsQueryResult
.
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,hasSome() |
label | eq() ,ne() ,startsWith() ,hasSome() ,exists() ,in() ,ascending() ,descending() |
slug | eq() ,ne() ,startsWith() ,hasSome() ,exists() ,in() ,ascending() ,descending() |
publicationCount | eq() ,ne() ,lt() ,le() ,gt() ,ge() ,in() ,ascending() ,descending() |
postCount | eq() ,ne() ,lt() ,le() ,gt() ,ge() ,in() ,ascending() ,descending() |
translationId | eq() ,ne() ,exists() ,in() |
language | eq() ,ne() ,exists() ,in() ,ascending() ,descending() |
Options specifying which fields to return.