register_graphql_edge_fields

register_graphql_edge_fields( string $from_type, string $to_type, array $fields ): void;

Adds several fields to the Connection Edge between the provided ‘From’ Type Name and ‘To’ Type Name.

  • Since: 1.13.0
  • Source File: plugins/wp-graphql/access-functions.php

Parameters

  • $from_type (string): The name of the Type the connection is coming from.
  • $to_type (string): The name of the Type or Alias (the connection config’s FromFieldName) the connection is going to.
  • $fields (array<string,array<string,mixed>>): An array of field configs.

Source

function register_graphql_edge_fields( string $from_type, string $to_type, array $fields ): void {