[英]Best way for splitting GraphQL schema into different modules in express-graphql?
我是 QraphQL 的新手,我在apollo-server
中找到了一些模块系统的最佳实践,但我找不到express-graphql
任何东西!
我正在使用GraphQLSchema
而不是buildSchema
。 当我试图将我的代码拆分为不同的模块时,它会陷入 NodeJs 循环依赖错误(返回空对象)。
作为 GraphQL 专家,您推荐哪一位? apollo-server
还是express-graphql
? 如果您推荐express-graphql
,您推荐哪种方法? GraphQLSchema
还是buildSchema
?
以及为这些方法中的每一种拆分我的模式的最佳方法是什么?
使用apollo-server-express ,帮助我做了很多类似这样的事情。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.