FileProvider
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
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
at line 68
string
getByID(string $queryID, string $schemaKey = 'default')
return a query given an ID