1 | <?php |
||
22 | class QueryProcessor { |
||
23 | |||
24 | /** |
||
25 | * The current user account. |
||
26 | * |
||
27 | * @var \Drupal\Core\Session\AccountProxyInterface |
||
28 | */ |
||
29 | protected $currentUser; |
||
30 | |||
31 | /** |
||
32 | * The graphql container parameters. |
||
33 | * |
||
34 | * @var array |
||
35 | */ |
||
36 | protected $parameters; |
||
37 | |||
38 | /** |
||
39 | * The schema plugin manager. |
||
40 | * |
||
41 | * @var \Drupal\graphql\Plugin\GraphQL\SchemaPluginManager |
||
42 | */ |
||
43 | protected $pluginManager; |
||
44 | |||
45 | /** |
||
46 | * The server helper. |
||
47 | * |
||
48 | * @var \GraphQL\Server\Helper |
||
49 | */ |
||
50 | protected $helper; |
||
51 | |||
52 | /** |
||
53 | * The query provider service. |
||
54 | * |
||
55 | * @var \Drupal\graphql\QueryProvider\QueryProviderInterface |
||
56 | */ |
||
57 | protected $queryProvider; |
||
58 | |||
59 | /** |
||
60 | * The renderer service. |
||
61 | * |
||
62 | * @var \Drupal\Core\Render\RendererInterface |
||
63 | */ |
||
64 | protected $renderer; |
||
65 | |||
66 | /** |
||
67 | * QueryProcessor constructor. |
||
68 | * |
||
69 | * @param \Drupal\Core\Render\RendererInterface $renderer |
||
70 | * The renderer service. |
||
71 | * @param \Drupal\Core\Session\AccountProxyInterface $currentUser |
||
72 | * The current user. |
||
73 | * @param \Drupal\graphql\Plugin\GraphQL\SchemaPluginManager $pluginManager |
||
74 | * The schema plugin manager. |
||
75 | * @param \Drupal\graphql\QueryProvider\QueryProviderInterface $queryProvider |
||
76 | * The query provider service. |
||
77 | * @param array $parameters |
||
78 | * The graphql container parameters. |
||
79 | */ |
||
80 | public function __construct( |
||
94 | |||
95 | /** |
||
96 | * Execute a GraphQL query. |
||
97 | * |
||
98 | * @param string $schema |
||
99 | * The name of the schema to execute. |
||
100 | * @param \GraphQL\Server\OperationParams|\GraphQL\Server\OperationParams[] $operations |
||
101 | * The graphql operation(s) to execute. |
||
102 | * @param mixed $context |
||
103 | * The context for the query. |
||
104 | * |
||
105 | * @return \Drupal\graphql\GraphQL\Execution\QueryResult |
||
106 | * The query result. |
||
107 | */ |
||
108 | public function processQuery($schema, $operations, $context = NULL) { |
||
149 | |||
150 | } |
||
151 |