graphql-go / graphql-go/graphql

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

Open
#582 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
10.1k
Forks
845
PR merge metrics
No merged PRs in 30d

Description

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
}
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.