Skip to content

Commit 6aa6a6b

Browse files
fix: AST from value handles Booleans
1 parent 1a8dc8a commit 6aa6a6b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/GraphQL/Utilities/ASTFromValue.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ func astFromValue(
9696
return nil
9797
}
9898

99+
// Others serialize based on their corresponding JavaScript scalar types.
100+
if case let .bool(bool) = serialized {
101+
return BooleanValue(value: bool)
102+
}
103+
99104
// Others serialize based on their corresponding scalar types.
100105
if case let .bool(bool) = serialized {
101106
return BooleanValue(value: bool)

0 commit comments

Comments
 (0)