graphql_server_config
do_action( 'graphql_server_config', $config, $this->params );
Run an action when the server config is created. The config can be acted upon directly to override default values or implement new features, e.g., $config->setValidationRules().
- Type: action
- Group: Request Lifecycle
- Since: 0.2.0
- Source File:
plugins/wp-graphql/src/Request.php
Parameters
$config(\GraphQL\Server\ServerConfig): Server config$params(\GraphQL\Server\OperationParams|\GraphQL\Server\OperationParams[]): Request operation params
Source
do_action( 'graphql_server_config', $config, $this->params );
Related
Request::get_server()inplugins/wp-graphql/src/Request.php:952