Methods
# (static) all() → {TopicsQuery}
Get all topics.
- Source:
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. |
- Source:
Returns:
- New TopicsQuery instance.
- Type
- TopicsQuery
# followedBy(userId) → {TopicsQuery}
Get topics followed by a specific user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
UserId | User ID. |
- Source:
Returns:
- New TopicsQuery instance.
- Type
- TopicsQuery
# onlyTrending(trending) → {TopicsQuery}
Get only trending topics.
Parameters:
Name | Type | Description |
---|---|---|
trending |
boolean | Only trending topics or all. |
- Source:
Returns:
Same query.
- Type
- TopicsQuery
# withLabels(labels) → {TopicsQuery}
Get topics matching the specified labels.
Parameters:
Name | Type | Description |
---|---|---|
labels |
Array.<string> | Labels list. |
- Source:
Returns:
same query.
- Type
- TopicsQuery
# withProperties(properties) → {TopicsQuery}
Get topics matching the specified properties.
Parameters:
Name | Type | Description |
---|---|---|
properties |
Object.<string, string> | Properties. |
- Source:
Returns:
same query.
- Type
- TopicsQuery