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 {