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

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

Params

  • $type (mixed|object|array): The type definition the node should resolve to
  • $node (mixed|object|array): The $node that is being resolved