【发布时间】:2018-08-27 14:40:24
【问题描述】:
我是 graphQL 的新手,当我尝试使用连字符/破折号定义架构时,它会显示错误。但是下划线没有任何问题。
# Type of Hello
enum HowAreYou{
Hello-Hello
Hai-Hai
}
throw (0, _error.syntaxError)(source, position, 'Invalid number, expected digit but got: ' + printCharCode(code) + '.');
^
GraphQLError: Syntax Error GraphQL request (176:9) Invalid number, expected digit but got: "H".
175: enum HowAreYou{
176: Hello-Hello
^
177: Hai-Hai
【问题讨论】:
标签: node.js schema naming-conventions graphql