graphql.yaml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. overblog_graphql:
  2. definitions:
  3. schema:
  4. query: Query
  5. mutation: Mutation
  6. resolver_maps:
  7. - '%chamilo_graphql.resolver_map.query.class%'
  8. - '%chamilo_graphql.resolver_map.enum.class%'
  9. - '%chamilo_graphql.resolver_map.interface.class%'
  10. - '%chamilo_graphql.resolver_map.scalar.class%'
  11. - '%chamilo_graphql.resolver_map.mutation.class%'
  12. mappings:
  13. types:
  14. -
  15. type: graphql
  16. dir: "%kernel.root_dir%/GraphQlBundle/Resources/config"
  17. parameters:
  18. chamilo_graphql.resolver_map.query.class: Chamilo\GraphQlBundle\Map\QueryMap
  19. chamilo_graphql.resolver_map.enum.class: Chamilo\GraphQlBundle\Map\EnumMap
  20. chamilo_graphql.resolver_map.interface.class: Chamilo\GraphQlBundle\Map\InterfaceMap
  21. chamilo_graphql.resolver_map.scalar.class: Chamilo\GraphQlBundle\Map\ScalarMap
  22. chamilo_graphql.resolver_map.mutation.class: Chamilo\GraphQlBundle\Map\MutationMap
  23. services:
  24. _defaults:
  25. public: true
  26. chamilo_graphql.resolver.user:
  27. class: Chamilo\GraphQlBundle\Resolver\UserResolver
  28. arguments: ['@service_container']
  29. chamilo_graphql.resolver.course:
  30. class: Chamilo\GraphQlBundle\Resolver\CourseResolver
  31. arguments: ['@service_container']
  32. chamilo_graphql.resolver.session:
  33. class: Chamilo\GraphQlBundle\Resolver\SessionResolver
  34. arguments: ['@service_container']
  35. Chamilo\GraphQlBundle\Map\:
  36. resource: "../../src/GraphQlBundle/Map/*"
  37. arguments:
  38. - "@service_container"