Closed usefksa closed 6 years ago
I fixed it here is the code for that
$parser = new Parser();
$request = new Request($parser->parse($payload), $variables);
$countQueriesAndMutations=count($request->getQueries()) + count($request->getMutations());
Is there any way to count how many query exist inside payload (root query)?
like here
The total here should be 3. I want to know how may query exists to prevent malicious queries (example, repeating the above query for thousands times.