graphql_post_object_connection_query_args

Filter the $query args to allow folks to customize queries programmatically

apply_filters( 'graphql_post_object_connection_query_args', array $query_args, mixed $source, array $args, AppContext $context, ResolveInfo $info );

Params

  • $query_args (array): The args that will be passed to the WP_Query
  • $source (mixed): The source that’s passed down the GraphQL queries
  • $args (array): The inputArgs on the field
  • $context (AppContext): The AppContext passed down the GraphQL tree
  • $info (ResolveInfo): The ResolveInfo passed down the GraphQL tree