public function ThunderParagraphsSchemaExtension::registerResolvers in Thunder 6.2.x
Overrides ThunderSchemaExtensionPluginBase::registerResolvers
File
- modules/
thunder_gqls/ src/ Plugin/ GraphQL/ SchemaExtension/ ThunderParagraphsSchemaExtension.php, line 25
Class
- ThunderParagraphsSchemaExtension
- The paragraph schema extension.
Namespace
Drupal\thunder_gqls\Plugin\GraphQL\SchemaExtensionCode
public function registerResolvers(ResolverRegistryInterface $registry) {
parent::registerResolvers($registry);
$this->registry
->addTypeResolver('Paragraph', \Closure::fromCallable([
__CLASS__,
'resolveParagraphTypes',
]));
$this
->resolveFields();
}