I'm new to QraphQL and I found some best practices for module system in apollo-server
but I can't find anything for express-graphql
!
I'm using GraphQLSchema
instead of buildSchema
. and when I'm trying to split my code into different modules, it will sticks in NodeJs circular dependencies error (returns empty object).
As a GraphQL expert, which one do you recommend? apollo-server
or express-graphql
? and if you recommend express-graphql
, which method do you recommend? GraphQLSchema
or buildSchema
?
and also what is the best way for splitting my schema for every one of these methods ?
Using apollo-server-express , helped me to do many kinds of stuff like this one.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.