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 packages/common/src/search/Collection.ts:15
Create an instance of a Collection from a JSON object