# new LabelsQuery(search)
Creates a LabelsQuery
Parameters:
Name | Type | Description |
---|---|---|
search |
string | Term to filter labels list |
- Source:
Methods
# (static) all() → {LabelsQuery}
All labels.
- Source:
Returns:
New instance.
- Type
- LabelsQuery
# (static) search(searchTerm) → {LabelsQuery}
Search for a specific label.
Parameters:
Name | Type | Description |
---|---|---|
searchTerm |
string | Search term. |
- Source:
Returns:
New instance.
- Type
- LabelsQuery
# followedBy(id) → {LabelsQuery}
Get labels followed by a specific user.
Parameters:
Name | Type | Description |
---|---|---|
id |
UserId | User ID. |
- Source:
Returns:
Same query.
- Type
- LabelsQuery
# onlyTrending(trending) → {LabelsQuery}
Get only trending labels.
Parameters:
Name | Type | Description |
---|---|---|
trending |
boolean | Only trending labels or all. |
- Source:
Returns:
Same query.
- Type
- LabelsQuery