TopicsQuery

TopicsQuery

# new TopicsQuery()

Creates a TopicsQuery.

Methods

# (static) all() → {TopicsQuery}

Get all topics.
Returns:
- New TopicsQuery instance.
Type
TopicsQuery

# (static) find(searchTerm) → {TopicsQuery}

Find topics by name or description.
Parameters:
Name Type Description
searchTerm string Topics name/description or part of it.
Returns:
- New TopicsQuery instance.
Type
TopicsQuery

# followedBy(userId) → {TopicsQuery}

Get topics followed by a specific user.
Parameters:
Name Type Description
userId UserId User ID.
Returns:
- New TopicsQuery instance.
Type
TopicsQuery

# onlyTrending(trending) → {TopicsQuery}

Get only trending topics.
Parameters:
Name Type Description
trending boolean Only trending topics or all.
Returns:
Same query.
Type
TopicsQuery

# withLabels(labels) → {TopicsQuery}

Get topics matching the specified labels.
Parameters:
Name Type Description
labels Array.<string> Labels list.
Returns:
same query.
Type
TopicsQuery

# withProperties(properties) → {TopicsQuery}

Get topics matching the specified properties.
Parameters:
Name Type Description
properties Object.<string, string> Properties.
Returns:
same query.
Type
TopicsQuery