JSONStringProvider
class JSONStringProvider implements PersistedQueryMappingProvider
Class ConfigStringProvider
Traits
Configurable
Injectable
Config options
schemaToJSON | array | Example:
SilverStripe\Core\Injector\Injector:
SilverStripe\GraphQL\PersistedQuery\PersistedQueryMappingProvider:
class: SilverStripe\GraphQL\PersistedQuery\JSONStringProvider:
properties:
schemaMapping:
default: '{"uuid-1":"query{ID+Email}"}'
|
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
Details
at line 46
array
getQueryMapping(string $schemaKey = 'default')
return a map from
at line 71
string
getByID(string $queryID, string $schemaKey = 'default')
return a query given an ID