For background, I am following the tutorial here: https://www.youtube.com/watch?v=HuN94qNwQmM .
As the code is too long I am putting that in git https://github.com/dikeshkumar135/CommandERGQL
Now, coming to the problem, when I am making request with this body
query{
platform{
id,
name,
commands{
howTo
}
}
}
I am getting the data for platform with commands value as null and the below error:
{
"message": "There was no argument with the name `platform` found on the field `commands`.",
"locations": [
{
"line": 5,
"column": 5
}
],
"path": [
"platform",
1,
"commands"
],
"extensions": {
"fieldName": "commands",
"argumentName": "platform"
}
If I remove the type it's working fine, but if I add type then the problem occurs to get related objects.