@@ -285,28 +285,31 @@ public static function get_connection_args( $access = 'public' ): array {
285285
286286 case 'public ' :
287287 default :
288- return [
289- 'statuses ' => [
290- 'type ' => [ 'list_of ' => 'OrderStatusEnum ' ],
291- 'description ' => __ ( 'Limit result set to orders assigned a specific status. ' , 'wp-graphql-woocommerce ' ),
292- ],
293- 'productId ' => [
294- 'type ' => 'Int ' ,
295- 'description ' => __ ( 'Limit result set to orders assigned a specific product. ' , 'wp-graphql-woocommerce ' ),
296- ],
297- 'orderby ' => [
298- 'type ' => [ 'list_of ' => 'OrdersOrderbyInput ' ],
299- 'description ' => __ ( 'What paramater to use to order the objects by. ' , 'wp-graphql-woocommerce ' ),
300- ],
301- 'search ' => [
302- 'type ' => 'String ' ,
303- 'description ' => __ ( 'Limit results to those matching a string. ' , 'wp-graphql-woocommerce ' ),
304- ],
305- 'dateQuery ' => [
306- 'type ' => 'DateQueryInput ' ,
307- 'description ' => __ ( 'Filter the connection based on dates. ' , 'wp-graphql-woocommerce ' ),
308- ],
309- ];
288+ return array_merge (
289+ get_wc_cpt_connection_args (),
290+ [
291+ 'statuses ' => [
292+ 'type ' => [ 'list_of ' => 'OrderStatusEnum ' ],
293+ 'description ' => __ ( 'Limit result set to orders assigned a specific status. ' , 'wp-graphql-woocommerce ' ),
294+ ],
295+ 'productId ' => [
296+ 'type ' => 'Int ' ,
297+ 'description ' => __ ( 'Limit result set to orders assigned a specific product. ' , 'wp-graphql-woocommerce ' ),
298+ ],
299+ 'orderby ' => [
300+ 'type ' => [ 'list_of ' => 'OrdersOrderbyInput ' ],
301+ 'description ' => __ ( 'What paramater to use to order the objects by. ' , 'wp-graphql-woocommerce ' ),
302+ ],
303+ 'search ' => [
304+ 'type ' => 'String ' ,
305+ 'description ' => __ ( 'Limit results to those matching a string. ' , 'wp-graphql-woocommerce ' ),
306+ ],
307+ 'dateQuery ' => [
308+ 'type ' => 'DateQueryInput ' ,
309+ 'description ' => __ ( 'Filter the connection based on dates. ' , 'wp-graphql-woocommerce ' ),
310+ ],
311+ ]
312+ );
310313 }//end switch
311314 }
312315
0 commit comments