class Introspection in GraphQL 8.4
Same name and namespace in other branches
- 8.3 src/GraphQL/Utility/Introspection.php \Drupal\graphql\GraphQL\Utility\Introspection
Runs introspection queries against a GraphQL server.
Hierarchy
- class \Drupal\graphql\GraphQL\Utility\Introspection
Expanded class hierarchy of Introspection
2 files declare their use of Introspection
- ExplorerController.php in src/
Controller/ ExplorerController.php - VoyagerController.php in src/
Controller/ VoyagerController.php
1 string reference to 'Introspection'
1 service uses Introspection
File
- src/
GraphQL/ Utility/ Introspection.php, line 12
Namespace
Drupal\graphql\GraphQL\UtilityView source
class Introspection {
/**
* Perform an introspection query and return result.
*
* @param \Drupal\graphql\Entity\ServerInterface $server
* The server instance.
*
* @return array
* The introspection result as an array.
*/
public function introspect(ServerInterface $server) {
$operation = new OperationParams();
$operation->query = IntrospectionType::getIntrospectionQuery([
'descriptions' => TRUE,
]);
$result = $server
->executeOperation($operation);
return $result
->toArray();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Introspection:: |
public | function | Perform an introspection query and return result. |