chkimes/graphql-net

Error in handling Integer/Long casting

isaachaw opened this issue · 1 comments

Client's query
query AnotherQuery($someId: Int!) { GetUser(userid: $someId) { id, created_dt, username } }

Backend
long userId = context.Argument<long>("userid");

Argument parsing for long type throws exception when the given parameter can be fit with integer type eg. 10001.
The parsing is ok when $someId is passed with 1000000000000000001

Sorry, submitted wrong repo.