new GraphQLLink(url, config)
Construct a new GraphQLLink
Parameters:
Name | Type | Description |
---|---|---|
url |
string
|
|
config |
object
|
= {} |
Methods
(async) mutate(config) → {Promise.<Object>}
Alias for run
Parameters:
Name | Type | Description |
---|---|---|
config |
Returns:
- Type:
-
Promise.<Object>
(async) query(config) → {Promise.<Object>}
Alias for run
Parameters:
Name | Type | Description |
---|---|---|
config |
Returns:
- Type:
-
Promise.<Object>
(async) run(config) → {Promise.<object>}
Run a new graphql request
Parameters:
Name | Type | Description |
---|---|---|
config |
Returns:
- Type:
-
Promise.<object>