class JSONStringProvider implements PersistedQueryMappingProvider (View source)

Class ConfigStringProvider

Traits

Configurable
Injectable

Properties

protected array $schemaToJSON

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

array getQueryMapping(string $schemaKey = 'default')

return a map from to

Parameters

string $schemaKey

Return Value

array

string getByID(string $queryID, string $schemaKey = 'default')

return a query given an ID

Parameters

string $queryID
string $schemaKey

Return Value

string

mixed setSchemaMapping(array $mapping)

Parameters

array $mapping

Return Value

mixed

array getSchemaMapping()

Return Value

array