graphql_post_object_connection_query_args
apply_filters( 'graphql_post_object_connection_query_args', $query_args, $this->source, $args, $this->context, $this->info );
Filter the $query args to allow folks to customize queries programmatically
- Type: filter
- Group: Connections
- Since: 0.0.6
- Source File:
plugins/wp-graphql/src/Data/Connection/PostObjectConnectionResolver.php
Parameters
$query_args(array<string,mixed>): The args that will be passed to the WP_Query$source(mixed): The source that’s passed down the GraphQL queries$args(array<string,mixed>): The inputArgs on the field$context(\WPGraphQL\AppContext): The AppContext passed down the GraphQL tree$info(\GraphQL\Type\Definition\ResolveInfo): The ResolveInfo passed down the GraphQL tree
Source
apply_filters( 'graphql_post_object_connection_query_args', $query_args, $this->source, $args, $this->context, $this->info );
Related
PostObjectConnectionResolver::prepare_query_args()inplugins/wp-graphql/src/Data/Connection/PostObjectConnectionResolver.php:362