rename_graphql_type
rename_graphql_type( string $type_name, string $new_type_name ): void;
Renames a GraphQL Type in the Schema.
- Since: 1.3.4
- Source File:
plugins/wp-graphql/access-functions.php
Parameters
$type_name(string): The name of the Type in the Schema to rename.$new_type_name(string): The new name to give the Type.
Throws
\Exception
Source
function rename_graphql_type( string $type_name, string $new_type_name ): void {