Collection
Collection Class
Abstracts searching a Collection
For more information, check out the Catalog & Collection Guide
Implements
Accessors
Accessor | Type | Notes |
---|---|---|
string[] | ||
string | ||
string | ||
IQuery | ||
"asc" | "desc" | ||
string | ||
EntityType |
Methods
Method | Returns | Notes |
---|---|---|
|
Collection |
Create an instance of a Collection from a JSON object |
|
Promise<IHubSearchResponse<IHubSearchResult>> |
Search the collection using a string or IQuery |
|
IHubCollection |
Return the JSON object backing the instance |
fromJson
StaticParameters
Parameter | Type | Default | Notes |
---|---|---|---|
collection Required | IHubCollection | ||
context Required | IArcGISContext |
Returns
search
Search the collection using a string or IQuery
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
query Required | string | IQuery | ||
options Optional | IHubSearchOptions | {} |
Returns
Class defined in common/src/search/Collection.ts:19
Create an instance of a Collection from a JSON object