We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0941d7a commit 3437debCopy full SHA for 3437deb
examples/src/Plugin/GraphQL/DataProducer/QueryArticles.php
@@ -87,7 +87,7 @@ public function __construct(
87
* @throws \Drupal\Component\Plugin\Exception\PluginNotFoundException
88
*/
89
public function resolve($offset, $limit, RefinableCacheableDependencyInterface $metadata) {
90
- if (!$limit > static::MAX_LIMIT) {
+ if ($limit > static::MAX_LIMIT) {
91
throw new UserError(sprintf('Exceeded maximum query limit: %s.', static::MAX_LIMIT));
92
}
93
0 commit comments