You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Data/Connection/AbstractConnectionResolver.php
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -415,8 +415,9 @@ public function get_node_by_id( $id ) {
415
415
/**
416
416
* Get_query_amount
417
417
*
418
-
* Returns the max between what was requested and what is defined as the $max_query_amount to
419
-
* ensure that queries don't exceed unwanted limits when querying data.
418
+
* Returns the max between what was requested and what is defined as the $max_query_amount to ensure that queries don't exceed unwanted limits when querying data.
419
+
*
420
+
* If the amount requested is greater than the max query amount, a debug message will be included in the GraphQL response.
420
421
*
421
422
* @return int
422
423
* @throws \Exception
@@ -438,16 +439,25 @@ public function get_query_amount() {
sprintf( 'The number of items requested by the connection (%s) exceeds the max query amount. Only the first %s items will be returned.', $requested_amount, $max_query_amount ),
$this->assertStringContainsString( 'The number of items requested by the connection (150) exceeds the max query amount.', $actual['extensions']['debug'][0]['message'] );
0 commit comments