register_graphql_connection_where_args
register_graphql_connection_where_args( string $from_type, string $to_type, array $fields ): void;
Adds several input fields 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.$fields(array<string,array<string,mixed>>): An array of field configs.
Source
function register_graphql_connection_where_args( string $from_type, string $to_type, array $fields ): void {