Homepage
Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

graphql_union_resolve_type

Filter the resolve type method for all unions

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