app-office-league
app-office-league copied to clipboard
Office League - GraphQl - Handle conversion with numeric types
When the type is set to graphQlLib.GraphQLInt
and the value returned is a JavaScript number, the value is silently ignored and removed from the returned data.
Set for example rating to graphQlLib.GraphQLInt in leaguePlayerType().
Bug from graphql-java. Fixed in this commit: https://github.com/graphql-java/graphql-java/commit/e4004d37aa515102b075ebb88c9e11c8a710bb4e#diff-1eca978226cf8b8b21bf9424dca786dd
Will update when a release is available. For now we can use toInt as you did