graphql-go / graphql

An implementation of GraphQL for Go / Golang
MIT License
9.87k stars 839 forks source link

"Field 'id' expected a number but got 'Q291cnNlTm9kZTo0'.", #582

Open luckyy199213 opened 3 years ago

luckyy199213 commented 3 years ago

I enter the following: mutation updatecourse{ updateCourse(input: { id:"Q291cnNlTm9kZTo0", title: "编辑", category:1 introduction: "niha", cover: 2, score: 20, limitApplicationCount: 10 } ) { course { id } } }

Returned: { "errors": [ { "message": "Field 'id' expected a number but got 'Q291cnNlTm9kZTo0'.", "locations": [ { "line": 64, "column": 3 } ], "path": [ "updateCourse" ] } ], "data": { "updateCourse": null } }

bhoriuchi commented 3 years ago

is the type of the id field defined ad an int?