class FileProvider implements PersistedQueryMappingProvider (View source)

Class FileProvider

Traits

Configurable
Injectable

Properties

protected array $schemaToPath

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

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