You are here

protected function PersistedQueryPluginOne::queryMap in GraphQL 8.4

Map between persisted query IDs and corresponding GraphQL queries.

1 call to PersistedQueryPluginOne::queryMap()
PersistedQueryPluginOne::getQuery in tests/modules/graphql_persisted_queries_test/src/Plugin/GraphQL/PersistedQuery/PersistedQueryPluginOne.php
Returns a query if this plugin has it.

File

tests/modules/graphql_persisted_queries_test/src/Plugin/GraphQL/PersistedQuery/PersistedQueryPluginOne.php, line 31

Class

PersistedQueryPluginOne
@PersistedQuery( id = "persisted_query_plugin_one", label = "Persisted Query One", description = "This is the first persisted query plugin" )

Namespace

Drupal\graphql_persisted_queries_test\Plugin\GraphQL\PersistedQuery

Code

protected function queryMap() : array {
  return [
    'query_1' => 'query { field_one }',
  ];
}