Merge schemas and resolvers
See original GitHub issueI want to separate my schemas and resolvers to separated files as it’s kinda big right now in one single file.
I found a library called merge-graphql-schemas
but I think that it’s redundant with Apollo Server 2 and graphql-tools
, the thing is that Apollo Server 2 does already what graphql-yoga
does and I don’t need to call makeExecutableSchema
in the version 1 as I needed before as it’s now wrapped inside the new ApolloServer
(see here so now I’m wondering, how can I use graphql-tools
and mergeSchema
with Apollo Server 2?
I don’t even know if this approach, I guess called schema stitching is only for remote schemas or it’s suited for local ones as well, like having an schema for user, another one for posts, and so on…
How can I accomplish this?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:5 (2 by maintainers)
Top GitHub Comments
@martijnwalraven where are these experimental modules?
I use graphql-import to merge schemas and graphql-merge-resolvers to merge my resolvers. Hope can help you.