@textile/hub > Query > useIndex
Query.useIndex() method
useIndex specifies the index to use when running this query.
Signature:
useIndex(fieldPath: string): Query;
Parameters
Parameter | Type | Description |
---|---|---|
fieldPath | string | The path to the indexed field. fieldPath must be a valid field for which an index has been created. |
Returns: