SearchQuery

SearchQuery

# new SearchQuery()

Creates an SearchQuery

Methods

# (static) all() → {SearchQuery}

Get all entities.
Returns:
A new query.
Type
SearchQuery

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

Find entities.
Parameters:
Name Type Description
searchTerm string String to search.
Returns:
A new query.
Type
SearchQuery

# inEntities(entities) → {SearchQuery}

Get only trending entities.
Parameters:
Name Type Description
entities Array.<CommunitiesEntityType> List of entities to search.
Returns:
Same query.
Type
SearchQuery

# withLabels(labels) → {SearchQuery}

Get entities with the specified labels.
Parameters:
Name Type Description
labels Array.<string> Labels list.
Returns:
same query.
Type
SearchQuery

# withProperties(properties) → {SearchQuery}

Get entities with the specified properties.
Parameters:
Name Type Description
properties Object.<string, string> Properties.
Returns:
same query.
Type
SearchQuery