jlouis / graphql-erlang

GraphQL implementation in Erlang.
Other
313 stars 52 forks source link

Ensure that values of scalars `String` and `Int` have the correct type #218

Open Premwoik opened 2 years ago

Premwoik commented 2 years ago

I figured out that the server accepts values for Int and String scalars that don't follow the type defined in the schema. This PR adds simple checks to Int and String scalars resolvers that ensure the type is correct.