class FileProvider implements PersistedQueryMappingProvider

Class FileProvider

Traits

Configurable
Injectable

Config options

schemaToPath array Example: SilverStripe\Core\Injector\Injector: SilverStripe\GraphQL\PersistedQuery\PersistedQueryMappingProvider: class: SilverStripe\GraphQL\PersistedQuery\FileProvider: properties: schemaMapping: default: '/var/www/project/persisted-graphql-query-mapping.json'

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 42
array getQueryMapping(string $schemaKey = 'default')

return a map from to

Parameters

string $schemaKey

Return Value

array

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

return a query given an ID

Parameters

string $queryID
string $schemaKey

Return Value

string

at line 79
mixed setSchemaMapping(array $mapping)

Parameters

array $mapping

Return Value

mixed

at line 89
array getSchemaMapping()

Return Value

array