src/Support/Http/Controllers/GraphQLController.php
protected function executeBatched(GraphQLRequest $request): array
    {
        $results = [];
        do {
            $results[] = $this->graphQL->executeRequest($request);
        } while ($request->advanceBatchIndex());

        return $results;
    }
protected function executeBatched(GraphQLRequest $request): array
    {
        $results = [];
        do {
            $results[] = $this->graphQL->executeRequest($request);
        } while ($request->advanceBatchIndex());

        return $results;
    }
protected function executeBatched ( GraphQLRequest $ request ) : array { $ results = [ ] ; do { $ results [ ] = $ this -> graphQL -> executeRequest ( $ request ) ; } while ( $ request -> advanceBatchIndex ( ) ) ; return $ results ; }
Loop through the individual batched queries and collect the results.

@param  \Nuwave\Lighthouse\Execution\GraphQLRequest  $request
@return mixed[]
Loop through the individual batched queries and collect the results .