Skip to content

Commit

Permalink
Merge pull request #12 from pristas-peter/bugfix/attributes-union-type
Browse files Browse the repository at this point in the history
Fix attributes union type config
  • Loading branch information
pristas-peter authored Oct 30, 2019
2 parents 1ee893b + 38c686f commit 603d38c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ protected function generate_graphql_block_type($block_type)
$union_type_name =
self::format_graphql_attributes_type_name($name) . 'Union';
register_graphql_union_type($union_type_name, [
'types' => $attributes_types,
'typeNames' => $attributes_types,
'resolveType' => function ($value) {
return $this->type_registry->get_type($value['__typename']);
}
Expand Down

0 comments on commit 603d38c

Please sign in to comment.