Class CommentConnectionResolver
Class CommentConnectionResolver - Connects the comments to other objects
- WPGraphQL\Data\ConnectionResolver implements WPGraphQL\Data\ConnectionResolverInterface
-
WPGraphQL\Type\Comment\Connection\CommentConnectionResolver
Namespace: WPGraphQL\Type\Comment\Connection
Package: WPGraphQL\Data\Resolvers
Located at Type/Comment/Connection/CommentConnectionResolver.php
Package: WPGraphQL\Data\Resolvers
Located at Type/Comment/Connection/CommentConnectionResolver.php
Methods summary
public static
mixed
|
#
get_query_args( $source, array $args,
This prepares the $query_args for use in the connection query. This is where default $args are set, where dynamic $args from the $source get set, and where mapping the input $args to the actual $query_args occurs. |
public static
WP_Comment_Query
|
|
public static
array
|
#
get_connection( array $query, array $items, mixed $source, array $args,
|
public static
array
|
|
public static
array
|
#
sanitize_input_fields( array $args, mixed $source, array $all_args,
This sets up the "allowed" args, and translates the GraphQL-friendly keys to WP_Comment_Query friendly keys. |
Methods inherited from WPGraphQL\Data\ConnectionResolver
get_amount_requested()
,
get_array_meta()
,
get_array_slice()
,
get_offset()
,
get_query_amount()
,
get_query_info()
,
resolve()