graphql_server_config

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()

do_action( 'graphql_server_config', ServerConfig $config, OperationParams $params );

Params

  • $config (ServerConfig): The Server config
  • $params (OperationParams): Request operation params

Source

File: wp-graphql/src/Request.php