Skip to content

Commit

Permalink
Add fallback for directive.isRepeatable in BuildClientSchema (#786) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Mar 29, 2021
1 parent fe227f1 commit cb54f64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

#### Unreleased

#### 14.6.1

Fix:
- Add fallback for `directive.isRepeatable` in `BuildClientSchema`

#### 14.6.0

Feat:
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/BuildClientSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ public function buildDirective(array $directive) : Directive
'name' => $directive['name'],
'description' => $directive['description'],
'args' => $this->buildInputValueDefMap($directive['args']),
'isRepeatable' => $directive['isRepeatable'],
'isRepeatable' => $directive['isRepeatable'] ?? false,
'locations' => $directive['locations'],
]);
}
Expand Down

0 comments on commit cb54f64

Please sign in to comment.