From e0166c3ba996a433b433e1985771a58321e6184d Mon Sep 17 00:00:00 2001 From: Marcelo Date: Thu, 13 Aug 2020 11:35:03 -0300 Subject: [PATCH] Update Store.php Get the batch informations to use [moreResults] => NO_MORE_RESULTS and an count(entityResults) --- src/GDS/Store.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/GDS/Store.php b/src/GDS/Store.php index 0c56935..a975066 100644 --- a/src/GDS/Store.php +++ b/src/GDS/Store.php @@ -60,7 +60,14 @@ class Store * @var string|null */ private $str_last_cursor = null; - + + /** + * The last result bacth + * + * @var string|null + */ + public $str_last_batch = null; + /** * Transaction ID * @@ -284,6 +291,7 @@ public function fetchPage($int_page_size, $mix_offset = null) ->withTransaction($this->str_transaction_id) ->gql($this->str_last_query . " LIMIT @intPageSize {$str_offset}", $arr_params); $this->str_last_cursor = $this->obj_gateway->getEndCursor(); + $this->str_last_batch = $this->obj_gateway->getBatch(); return $arr_results; }