0244-filters-graphql-root-value
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
这篇文档对你有帮助吗?
谢谢你的反馈!