You are here

public function SchemaProvider::getQuerySchema in GraphQL 8.2

Same name and namespace in other branches
  1. 8 src/SchemaProvider.php \Drupal\graphql\SchemaProvider::getQuerySchema()

Return value

array

Overrides SchemaProviderInterface::getQuerySchema

File

src/SchemaProvider.php, line 26

Class

SchemaProvider
Generates a GraphQL Schema.

Namespace

Drupal\graphql

Code

public function getQuerySchema() {
  return array_reduce($this
    ->getSortedProviders(), function ($carry, SchemaProviderInterface $provider) {
    return array_merge($carry, $provider
      ->getQuerySchema() ?: []);
  }, []);
}