0316-functions-register-graphql-interface-type
title: register_graphql_interface_type docType: function plugin: wp-graphql
register_graphql_interface_type
register_graphql_interface_type( string $type_name, $config ): void;
Given a Type Name and a $config array, this adds an Interface Type to the TypeRegistry
- Since: 0.4.0
- Source File:
plugins/wp-graphql/access-functions.php
Parameters
$type_name(string): The name of the Type to register$config(array<string,mixed>): The Type config
Source
function register_graphql_interface_type( string $type_name, $config ): void {
这篇文档对你有帮助吗?
谢谢你的反馈!