0319-functions-register-graphql-object-type
目录
- title: register_graphql_object_type docType: function plugin: wp-graphql
- register_graphql_object_type
- Parameters
- Recipes
- Source
title: register_graphql_object_type docType: function plugin: wp-graphql
register_graphql_object_type
register_graphql_object_type( string $type_name, array $config ): void;
Given a Type Name and a $config array, this adds an ObjectType to the TypeRegistry
- Since: 0.1.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
Recipes
- Add WP Admin Color Schemes to WPGraphQL
- List of Key Values
- Register object and field for custom list of users
Source
function register_graphql_object_type( string $type_name, array $config ): void {