Skip to content

Commit 3437deb

Browse files
Examples module doesn't throw error when limit is greater than MAX_LIMIT (#1008)
1 parent 0941d7a commit 3437deb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/src/Plugin/GraphQL/DataProducer/QueryArticles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __construct(
8787
* @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
8888
*/
8989
public function resolve($offset, $limit, RefinableCacheableDependencyInterface $metadata) {
90-
if (!$limit > static::MAX_LIMIT) {
90+
if ($limit > static::MAX_LIMIT) {
9191
throw new UserError(sprintf('Exceeded maximum query limit: %s.', static::MAX_LIMIT));
9292
}
9393

0 commit comments

Comments
 (0)