跳转到主要内容

0107-filters-graphql-app-context-config


title: graphql_app_context_config hookType: filter hookGroup: request-lifecycle plugin: wp-graphql

graphql_app_context_config

apply_filters( 'graphql_app_context_config', $this->config );

This filters the config for the AppContext. This can be used to store additional context config, which is available to resolvers throughout the resolution of a GraphQL request.

  • Type: filter
  • Group: Request Lifecycle
  • Since: 0.0.5
  • Source File: plugins/wp-graphql/src/AppContext.php

Parameters

  • $config (mixed[]): The config array of the AppContext object

Source

apply_filters( 'graphql_app_context_config', $this->config );