I’ve created a schema with a Topic
type:
type Topic {
id: ID!
title: String!
}
My understanding is that this should generate a query called getTopic(uid)
, but when I try executing this in ratel as described here, I get an error.
My query:
query {
getTopic(id: "0x1") {
title
}
}
I’ve also tried getTopic(topicID: "0x1")
with the same result.
The error:
[
{
"message": "line 2 column 11: Got invalid keyword: id at root",
"extensions": {
"code": "ErrorInvalidRequest"
}
}
]
Thanks for any help you can provide.