graphql_union_possible_types
apply_filters( 'graphql_union_possible_types', $config['types'], $config, $this );
Filters the possible GraphQL object types for the union.
- Type: filter
- Group: Schema Registration
- Since: 0.15.0
- Source File:
plugins/wp-graphql/src/Type/WPUnionType.php
Parameters
$types(callable|array<string,mixed>): The union type candidates.$config(array<string,mixed>): The type config.$type(\WPGraphQL\Type\WPUnionType): The union type instance.
Source
apply_filters( 'graphql_union_possible_types', $config['types'], $config, $this );
Related
WPUnionType::__construct()inplugins/wp-graphql/src/Type/WPUnionType.php:95