我有graphql的问题:
type Mutation {
clearEsLog(): string
clearRabbit(): string
}
我使用Nestjs,当我运行应用程序时,错误是:
UnhandledPromiseRejectionWarning:语法错误:找到预期的名称)
如果您的查询或突变中没有参数,则必须省略括号()
:
type Mutation {
clearEsLog: string
clearRabbit: string
}