HTTPProvider
class HTTPProvider implements PersistedQueryMappingProvider
Class HTTPProvider
Traits
Configurable
Injectable
Config options
| timeout | int | Timeout for the HTTP request | |
| schemaToURL | array | Example:
SilverStripe\Core\Injector\Injector:
SilverStripe\GraphQL\PersistedQuery\PersistedQueryMappingProvider:
class :SilverStripe\GraphQL\PersistedQuery\HTTPProvider:
properties:
schemaMapping:
default: 'http://example.com/mapping.json'
|
Methods
array
getQueryMapping(string $schemaKey = 'default')
return a map from
string
getByID(string $queryID, string $schemaKey = 'default')
return a query given an ID
mixed
setSchemaMapping(array $mapping)
No description
array
getSchemaMapping()
No description
$this
getClient()
No description
Details
at line 61
__construct(HTTPClient $client = null)
HTTPProvider constructor.
at line 75
array
getQueryMapping(string $schemaKey = 'default')
return a map from
at line 113
string
getByID(string $queryID, string $schemaKey = 'default')
return a query given an ID