protected function PersistedQueryPluginThree::queryMap in GraphQL 8.4
Map between persisted query IDs and corresponding GraphQL queries.
1 call to PersistedQueryPluginThree::queryMap()
- PersistedQueryPluginThree::getQuery in tests/
modules/ graphql_persisted_queries_test/ src/ Plugin/ GraphQL/ PersistedQuery/ PersistedQueryPluginThree.php - Returns a query if this plugin has it.
File
- tests/
modules/ graphql_persisted_queries_test/ src/ Plugin/ GraphQL/ PersistedQuery/ PersistedQueryPluginThree.php, line 31
Class
- PersistedQueryPluginThree
- @PersistedQuery( id = "persisted_query_plugin_three", label = "Persisted Query Three", description = "This is the third persisted query plugin" )
Namespace
Drupal\graphql_persisted_queries_test\Plugin\GraphQL\PersistedQueryCode
protected function queryMap() : array {
return [
'query_1' => "query { field_three { url } }",
'query_2' => "query { field_three { url\ntitle } }",
];
}