register_graphql_connection_where_arg
register_graphql_connection_where_arg( string $from_type, string $to_type, string $field_name, array $config ): void;
Adds an input field to the Connection Where Args 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’sFromFieldName) the connection is going to.$field_name(string): The name of the field to add to the connection edge.$config(array<string,mixed>): The field config.
Source
function register_graphql_connection_where_arg( string $from_type, string $to_type, string $field_name, array $config ): void {