You are here

protected function ComposableSchema::getSchemaDefinition in GraphQL 8.4

Retrieves the raw schema definition string.

Return value

string The schema definition.

Throws

\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException

Overrides SdlSchemaPluginBase::getSchemaDefinition

File

src/Plugin/GraphQL/Schema/ComposableSchema.php, line 40

Class

ComposableSchema
Plugin annotation @Schema( id = "composable", name = "Composable schema" )

Namespace

Drupal\graphql\Plugin\GraphQL\Schema

Code

protected function getSchemaDefinition() {
  return <<<GQL
      type Schema {
        query: Query
      }

      type Query
GQL;
}