0327-functions-rename-graphql-type
title: rename_graphql_type docType: function plugin: wp-graphql
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 {
这篇文档对你有帮助吗?
谢谢你的反馈!