Skip to content

Commit cdababa

Browse files
committed
[graphql] SearchBy: Fixed definition of Relation condition.
1 parent dfed6ce commit cdababa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/SearchBy/DirectiveTest~full-expected.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ enum SearchByFlag {
135135
"""Relation condition for input Nested."""
136136
input SearchByRelationNested {
137137
"""Has?"""
138-
has: [SearchByConditionNested!]!
138+
has: SearchByConditionNested!
139139

140140
"""Equal (`=`)."""
141141
eq: Int

src/SearchBy/Operators/Complex/Relation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function getDescription(): string {
3030
* @inheritdoc
3131
*/
3232
public function getDefinition(array $map, string $scalar, bool $nullable): string {
33-
return parent::getDefinition($map, "[{$scalar}!]!", true);
33+
return parent::getDefinition($map, "{$scalar}!", true);
3434
}
3535

3636
/**

0 commit comments

Comments
 (0)