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 f878a5b commit d2d53f5Copy full SHA for d2d53f5
src/Fields/Field.php
@@ -442,7 +442,7 @@ public function toGql(): array
442
$type = ['type' => $type];
443
}
444
445
- if ($this->isRequired() && ! $this->hasSometimesRule() && $this->config['type'] !== 'assets') {
+ if ($this->isRequired() && ! $this->hasSometimesRule() && $this->type() !== 'assets') {
446
$type['type'] = GraphQL::nonNull($type['type']);
447
448
0 commit comments