graphql_union_resolve_type

apply_filters( 'graphql_union_resolve_type', $type, $obj, $this );

Filters the resolved GraphQL object type for a union value.

  • Type: filter
  • Group: Schema Registration
  • Since: 0.4.0
  • Source File: plugins/wp-graphql/src/Type/WPUnionType.php

Parameters

  • $type (mixed): The resolved GraphQL type.
  • $obj (mixed): The object being resolved.
  • $type_instance (\WPGraphQL\Type\WPUnionType): The union type instance.

Source

apply_filters( 'graphql_union_resolve_type', $type, $obj, $this );