graphql_connection_query_args

Get the Query Args. This accepts the input args and maps it to how it should be used in the WP_Query.

apply_filters( 'graphql_connection_query_args', array $query_args, AbstractConnectionResolver $resolver );

Params

  • $query_args (array): The query args to be used with the executable query to get data. This should take in the GraphQL args and return args for use in fetching the data.
  • $resolver¬†(AbstractConnectionResolver): Instance of the connection resolver