You are here

graphql.services.yml in GraphQL 8

File

graphql.services.yml
View source
  1. services:
  2. cache.graphql_schema:
  3. class: Drupal\Core\Cache\CacheBackendInterface
  4. tags:
  5. - { name: cache.bin }
  6. factory: cache_factory:get
  7. arguments: [graphql_schema]
  8. graphql.graphql:
  9. class: Fubhy\GraphQL\GraphQL
  10. graphql.schema_loader:
  11. class: Drupal\graphql\SchemaLoader
  12. arguments: ['@graphql.schema_provider', '@cache.graphql_schema']
  13. graphql.schema_provider:
  14. class: Drupal\graphql\SchemaProvider
  15. tags:
  16. - { name: service_collector, tag: graphql_schema_provider, call: addSchemaProvider }
  17. graphql.schema_provider.entity:
  18. class: Drupal\graphql\SchemaProvider\EntitySchemaProvider
  19. arguments: ['@entity.manager', '@typed_data_manager', '@graphql.type_resolver']
  20. tags:
  21. - { name: graphql_schema_provider }
  22. graphql.schema_provider.views:
  23. class: Drupal\graphql\SchemaProvider\ViewsSchemaProvider
  24. arguments: ['@entity.manager', '@typed_data_manager', '@graphql.type_resolver', '@module_handler']
  25. tags:
  26. - { name: graphql_schema_provider }
  27. graphql.type_resolver:
  28. class: Drupal\graphql\TypeResolver
  29. tags:
  30. - { name: service_collector, tag: graphql_type_resolver, call: addTypeResolver }
  31. graphql.type_resolver.typed_data:
  32. class: Drupal\graphql\TypeResolver\TypedDataTypeResolver
  33. arguments: ['@graphql.type_resolver']
  34. tags:
  35. - { name: graphql_type_resolver, priority: -10 }
  36. graphql.type_resolver.typed_data.content_entity:
  37. class: Drupal\graphql\TypeResolver\ContentEntityTypeResolver
  38. arguments: ['@graphql.type_resolver', '@entity.manager', '@typed_data_manager']
  39. tags:
  40. - { name: graphql_type_resolver }
  41. graphql.type_resolver.typed_data.config_entity:
  42. class: Drupal\graphql\TypeResolver\ConfigEntityTypeResolver
  43. arguments: ['@entity.manager']
  44. tags:
  45. - { name: graphql_type_resolver }
  46. graphql.type_resolver.typed_data.field_item:
  47. class: Drupal\graphql\TypeResolver\FieldItemTypeResolver
  48. arguments: ['@graphql.type_resolver', '@entity.manager']
  49. tags:
  50. - { name: graphql_type_resolver }
  51. graphql.type_resolver.typed_data.language:
  52. class: Drupal\graphql\TypeResolver\LanguageTypeResolver
  53. tags:
  54. - { name: graphql_type_resolver }
  55. graphql.page_display_variant_subscriber:
  56. class: Drupal\graphql\EventSubscriber\ExplorerPageDisplayVariantSubscriber
  57. tags:
  58. - { name: event_subscriber }
  59. cache.graphql_schema:
  60. class: Drupal\Core\Cache\CacheBackendInterface
  61. tags:
  62. - { name: cache.bin }
  63. factory: cache_factory:get
  64. arguments: [graphql_schema]