Automattic\WooCommerce\Internal\Api\Autogenerated\GraphQLTypes\Pagination
ProductReviewConnection{}
No Hooks.
Usage
$ProductReviewConnection = new ProductReviewConnection(); // use class methods
Methods
- public static get()
ProductReviewConnection{} ProductReviewConnection{} code WC 10.9.1
class ProductReviewConnection {
private static ?ObjectType $instance = null;
public static function get(): ObjectType {
if ( null === self::$instance ) {
self::$instance = new ObjectType(
array(
'name' => 'ProductReviewConnection',
'description' => __( 'A connection to a list of ProductReview items.', 'woocommerce' ),
'fields' => fn() => array(
'edges' => array(
'type' => Type::nonNull(
Type::listOf(
Type::nonNull(
ProductReviewEdge::get()
)
)
),
),
'nodes' => array(
'type' => Type::nonNull(
Type::listOf(
Type::nonNull(
ProductReviewType::get()
)
)
),
),
'page_info' => array(
'type' => Type::nonNull( PageInfo::get() ),
),
'total_count' => array(
'type' => Type::nonNull( Type::int() ),
),
),
)
);
}
return self::$instance;
}
}