我在尝试使用的节点应用程序中遇到以下错误:
{ [GraphQLError: Cannot return null for non-nullable field Issue.id.]
message: 'Cannot return null for non-nullable field Issue.id.',
locations: [ { line: 3, column: 9 } ],
path: [ 'issueList', 0, 'id' ],
extensions:
{ code: 'INTERNAL_SERVER_ERROR',
exception: { stacktrace: [Array] } } }我假设我在查询中传递了一个null ID,但是字段Issue.id需要一个值。
不幸的是,错误中没有其他东西,所以我不知道从哪里开始研究它。我该如何解决这个问题?
发布于 2019-10-04 03:55:45
问题是我指向了错误的数据库。我所指的数据库中甚至不存在Issue.id。
https://stackoverflow.com/questions/58213641
复制相似问题