小编dpr*_*per的帖子

预期undefined为GraphQL叶类型

在我的项目中运行relay-compiler时出现以下错误

$ get-graphql-schema http://localhost/api/office > schema.graphql   
$ relay-compiler --src ./src/client --schema schema.graphql  
Watchman:  Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions  
HINT: pass --watch to keep watching for changes.  

Writing js  
ERROR:  
Expected undefined to be a GraphQL leaf type.  
error Command failed with exit code 100.
Run Code Online (Sandbox Code Playgroud)

关于如何进行调试的任何建议,我项目中最近的唯一变化(着名的最后一句话)是升级到继电器1.5.我怀疑在graphql架构中需要更改以适应新的中继编译器,但我没有看到它.

schema.graphql如下:

schema {
  query: RootQuery
  mutation: RootMutation
}

type Delete {
  n: String
  nModified: String
  ok: String
}

type Room {
  _uuid: String
  roomName: String
  serviceName: String
  roomURL: String …
Run Code Online (Sandbox Code Playgroud)

graphql relayjs

3
推荐指数
1
解决办法
2299
查看次数

标签 统计

graphql ×1

relayjs ×1