Graphql & Error: Interface field

2018-06-08  本文已影响0人  南窗云

服务端类型错误,[Class]! --> [Class]

让服务端修改此处类型就可以了

Role.classes expects type [Class]! but Student.classes is type [Class].

Error: Interface field Role.classes expects type [Class]! but Student.classes is type [Class].
    at assertValidSchema (/Users/jake/Documents/code/riseon_android/riseon-parents-android/app/build/apollo-codegen/node_modules/graphql/type/validate.js:82:11)
    at Object.validate (/Users/jake/Documents/code/riseon_android/riseon-parents-android/app/build/apollo-codegen/node_modules/graphql/validation/validate.js:58:35)
    at Object.validateQueryDocument (/Users/jake/Documents/code/riseon_android/riseon-parents-android/app/build/apollo-codegen/node_modules/apollo-codegen/src/validation.ts:25:28)
    at Object.generate (/Users/jake/Documents/code/riseon_android/riseon-parents-android/app/build/apollo-codegen/node_modules/apollo-codegen/src/generate.ts:38:3)
    at Object.yargs.command.command.command.argv [as handler] (/Users/jake/Documents/code/riseon_android/riseon-parents-android/app/build/apollo-codegen/node_modules/apollo-codegen/src/cli.js:207:7)
    at Object.runCommand (/Users/jake/Documents/code/riseon_android/riseon-parents-android/app/build/apollo-codegen/node_modules/yargs/lib/command.js:235:44)
    at Object.parseArgs [as _parseArgs] (/Users/jake/Documents/code/riseon_android/riseon-parents-android/app/build/apollo-codegen/node_modules/yargs/yargs.js:1013:30)
    at Object.get [as argv] (/Users/jake/Documents/code/riseon_android/riseon-parents-android/app/build/apollo-codegen/node_modules/yargs/yargs.js:957:21)
    at Object.<anonymous> (/Users/jake/Documents/code/riseon_android/riseon-parents-android/app/build/apollo-codegen/node_modules/apollo-codegen/lib/cli.js:197:5)
    at Module._compile (module.js:556:32)
:app:generateOnlineDebugApolloIR FAILED
上一篇下一篇

猜你喜欢

热点阅读