graphql_union_resolve_type

Filter the resolve type method for all unions

apply_filters( 'graphql_union_resolve_type', mixed $type, mixed $object, WPUnionType $union_type );

Params

  • $type (mixed): The Type to resolve to, based on the object being resolved
  • $object (mixed): The Object being resolved
  • $union_type (WPUnionType): The WPUnionType instance