0244-filters-graphql-root-value
目录
- title: graphql_root_value hookType: filter hookGroup: request-lifecycle plugin: wp-graphql
- graphql_root_value
- Parameters
- Source
- Related
title: graphql_root_value hookType: filter hookGroup: request-lifecycle plugin: wp-graphql
graphql_root_value
apply_filters( 'graphql_root_value', $root_value, $this );
Return the filtered root value
- Type: filter
- Group: Request Lifecycle
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Request.php
Parameters
$root_value(mixed|RootValueResolver): The root value the Schema should use to resolve with. Default null.$request(\WPGraphQL\Request): The Request instance
Source
apply_filters( 'graphql_root_value', $root_value, $this );
Related
Request::get_root_value()inplugins/wp-graphql/src/Request.php:244