public function SchemaBuilderInterface::hasFields in GraphQL 8.3
Checks if a given type has any fields attached to it.
Parameters
string $type: The name of the type.
Return value
bool TRUE if the type has any fields, FALSE otherwise.
1 method overrides SchemaBuilderInterface::hasFields()
- SchemaPluginBase::hasFields in src/
Plugin/ GraphQL/ Schemas/ SchemaPluginBase.php - Checks if a given type has any fields attached to it.
File
- src/
Plugin/ SchemaBuilderInterface.php, line 19
Class
Namespace
Drupal\graphql\PluginCode
public function hasFields($type);