Closed Markionium closed 5 months ago
The following schema encodes correctly.
type Query { person(id: Int!): Person } type Person { name: String! phones(includeDefault: Boolean = true): [String!]! }
However when trying to decode it it will throw reach the invariant and throw an error.
Unexpected value for type Boolean: true
This PR adds a test case for this case and fixes the decoding.
In addition I changed the test case name to be the correct name.
The following schema encodes correctly.
However when trying to decode it it will throw reach the invariant and throw an error.
Unexpected value for type Boolean: true
This PR adds a test case for this case and fixes the decoding.
In addition I changed the test case name to be the correct name.