supperchong / egg-apollo-server Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
graphql报错信息如何记录logs目录文件里面?
现在用的这个 https://github.com/Carrotzpc/egg-graphql 支持ts
请问在resolver.js怎么拿到model和service?dataSource可以用来传递哪些东西?希望有一个复杂点例子。谢谢。
@supperchong
ts版本 我试了下报错了,是否有正确的约定书写规范?
代码段:
directive @auth(requires: [Role]) on OBJECT | FIELD_DEFINITION
enum Role {
ADMIN
VISITOR
VIP
}
报错信息:
at Master.onAppExit (/Users/yushu/Documents/project/gayhub/beast-fitness/backend/node_modules/_egg-cluster@1.25.0@egg-cluster/lib/master.js:510:21)
at Master.emit (events.js:198:13)
at Messenger.sendToMaster (/Users/yushu/Documents/project/gayhub/beast-fitness/backend/node_modules/_egg-cluster@1.25.0@egg-cluster/lib/utils/messenger.js:137:17)
at Messenger.send (/Users/yushu/Documents/project/gayhub/beast-fitness/backend/node_modules/_egg-cluster@1.25.0@egg-cluster/lib/utils/messenger.js:102:12)
at EventEmitter.cluster.on (/Users/yushu/Documents/project/gayhub/beast-fitness/backend/node_modules/_egg-cluster@1.25.0@egg-cluster/lib/master.js:353:22)
at EventEmitter.emit (events.js:203:15)
at ChildProcess.worker.process.once (internal/cluster/master.js:190:13)
at Object.onceWrapper (events.js:286:20)
at ChildProcess.emit (events.js:198:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
name: "AppWorkerDiedError"
pid: 879
Cannot extend type "Subscription" because it is not defined
那不是要魔改你插件的代码了?
按照demo配置报这个错误
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.