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?