0320-functions-register-graphql-scalar
title: register_graphql_scalar docType: function plugin: wp-graphql
register_graphql_scalar
register_graphql_scalar( string $type_name, array $config ): void;
Given a config array for a custom Scalar, this registers a Scalar for use in the Schema
- Since: 0.8.4
- Source File:
plugins/wp-graphql/access-functions.php
Parameters
$type_name(string): The name of the Type to register$config(array<string,mixed>): The config for the scalar type to register
Source
function register_graphql_scalar( string $type_name, array $config ): void {
这篇文档对你有帮助吗?
谢谢你的反馈!