Methods
_parseJson(buffer) → {object}
Parse data from JSON endpoint
Parameters:
Name | Type | Description |
---|---|---|
buffer |
string | JSON repsonse from upstream API |
- Source:
Returns:
Parsed response
- Type
- object
(async) _requestGraphql(attrs) → {object}
Request data from an upstream GraphQL API, parse it and validate against a schema
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
attrs |
object | Refer to individual attrs Properties
|
- Source:
- See:
Returns:
Parsed response
- Type
- object