You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SchemaGenerator: improve exception when the wrong type is provided #425
Currently when you try to build a schema and an InputType is expected you get a ClassCastException.
This should be improved by a better Exception, which tells the user what type to expect.
There should also be a test to verify it.
Example:
typeMutationType {
addCharacter(character: CharacterInput):
}
# CharacterInput must be an input, but is a typetypeCharacterInput {
firstName: StringlastName: Stringfamily: Boolean
}
typeMutationResult {
success: Boolean
}
changed the title [-]improve exception when the wrong type is provided[/-][+]SchemaGenerator: improve exception when the wrong type is provided[/+]on May 12, 2017
Activity
[-]improve exception when the wrong type is provided[/-][+]SchemaGenerator: improve exception when the wrong type is provided[/+]dh94 commentedon May 12, 2017
i'll take a crack at it
andimarek commentedon May 13, 2017
done with #429