问题描述:运行Apollo-codegen introspection时出现错误
错误示例:
Error: ENOENT: no such file or directory, open '/path/to/schema.graphql'
at Object.openSync (fs.js:476:3)
at Object.readFileSync (fs.js:377:35)
at getSchema (/Users/User/myapp/node_modules/apollo-codegen/lib/loading.js:116:55)
at Object.exports.generate (/Users/User/myapp/node_modules/apollo-codegen/lib/index.js:70:73)
at run (/usr/local/lib/node_modules/apollo-codegen/lib/command.js:125:27)
at module.exports (/usr/local/lib/node_modules/apollo-codegen/lib/command.js:150:3)