You are here

public function EventSchemaExtension::registerResolvers in Open Social 10.3.x

File

modules/social_features/social_event/src/Plugin/GraphQL/SchemaExtension/EventSchemaExtension.php, line 24

Class

EventSchemaExtension
Adds event data to the Open Social GraphQL API.

Namespace

Drupal\social_event\Plugin\GraphQL\SchemaExtension

Code

public function registerResolvers(ResolverRegistryInterface $registry) {
  $builder = new ResolverBuilder();
  $this
    ->addQueryFields($registry, $builder);
  $this
    ->addEventFields($registry, $builder);
}