我想用下面的查询在graphiql中创建一个furniture对象,其中我得到一个错误Cannot query field“furniture”on type“rootvariation”。在
这是我为创建家具对象所做的查询
mutation {
newFurniture(input: {name: "graphFurniture", content: "This furniture is cool", category: "Bedroom Items"}) {
clientMutationId
}
furniture{ // error is shown here
name
content
category {
name
}
}
}
这是我的变异密码
^{pr2}$为什么我会犯这样的错误?在
不能在“变异”范围内查询家具。这是两个独立的操作:
相关问题 更多 >
编程相关推荐