graphql_resolve_node_type
Add a filter to allow externally registered node types to return the proper type based on the node_object that’s returned
apply_filters( 'graphql_resolve_node_type', mixed $type, mixed $node );
Params
- $type (mixed|object|array): The type definition the node should resolve to
- $node (mixed|object|array): The $node that is being resolved