Skip to content

Question: So what IS the difference between merge-schemas and stitch-schemas? #1894

Answered by ardatan
DianaSuvorova asked this question in General
Discussion options

You must be logged in to vote

Schema Stitching creates a gateway/proxy schema on top of different independent subschemas so the parts of that schema are executed using GraphQLJS internally. This is useful to create an architecture like microservices.
Schema Merging creates a new schema by merging the extracted type definitions and resolvers from them so there will be a single execution layer.
The first one keeps the individual schemas but the second one doesn't. So the first one is good for combining multiple remote GraphQL APIs but the second one is good for combining local schemas.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DianaSuvorova
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1894 on August 10, 2020 20:20.