A hook to interact with the Hermes API.
| Name | Type | Description | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props | object | The props for the hook. Properties
|
- Since
- 4.0.5
- Source
The Hermes state and actions.
- Type:
- object
Methods
(async, inner) mutation(args) → {Promise}
Performs mutation on the Hermes API.
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args | object | Args for the mutation. Properties
|
- Since
- 4.0.5
- Source
The mutation promise.
- Type:
- Promise
(async, inner) query(args) → {Promise}
Performs query on the Hermes API.
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args | object | Args for the query. Properties
|
- Since
- 4.0.5
- Source
The query promise.
- Type:
- Promise