jcrygier / graphql-jpa

JPA Implementation of GraphQL (builds on graphql-java)
MIT License
165 stars 46 forks source link

Long ID argument results in ValidationError("Variable type doesn't match") #7

Closed timtebeek closed 8 years ago

timtebeek commented 8 years ago

As seen in https://github.com/timtebeek/graphql-jpa-enum/commit/a918b08b59716fb50422ac49bc86b80c085206ef#diff-5f96389b4149619689e68e09eb2cd84dR59

When I try to pass an id argument of type Long to execute I get a ValidationError("Variable type doesn't match"). Debugging results in the following state:

inputType = GraphQLScalarType{name='Long', description='Long type', coercing=graphql.Scalars$2@25dc2c0}
variableType = GraphQLNonNull{wrappedType=GraphQLScalarType{name='Long', description='Built-in Long', coercing=org.crygier.graphql.JavaScalars$1@192ecf8}}

How can I update graphl-jpa to handle the Long id argument correctly?