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 to

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 to

Parameters

string $schemaKey

Return Value

array

at line 71
string getByID(string $queryID, string $schemaKey = 'default')

return a query given an ID

Parameters

string $queryID
string $schemaKey

Return Value

string

at line 82
mixed setSchemaMapping(array $mapping)

Parameters

array $mapping

Return Value

mixed

at line 105
array getSchemaMapping()

Return Value

array