Comments (3)
You can see here that mergeSchemas
no longer does stitching and renamed to stitchSchemas
which is part of Schema Stitching. mergeSchemas
now has a different implementation that is part of Schema Merging.
Closing the issue since the changes are described in the migration guide.
from graphql-tools.
I couldn't understand how it overwrites the previous schema. Could you create a more isolated example without http endpoints in CodeSandbox? Thanks!
Also keep in mind that remote schemas are not supposed to be merged like local schemas. Schema stitching is recommended in this case.
See the note here;
https://the-guild.dev/graphql/tools/docs/schema-merging
Schema merging (@graphql-tools/merge and @graphql-tools/schema) consolidates the type definitions and resolvers from many local schema instances into a single executable schema. This is useful for building a single local service schema from many individually-managed parts. This should not be confused with schema stitching(opens in a new tab), which builds a combined proxy schema atop numerous subservice APIs.
from graphql-tools.
The problem might be only with remote schemas indeed. As the v4 works I was wondering if v10 should not work on the same way. I will check the schema stitching.
from graphql-tools.
Related Issues (20)
- GraphQLSchema from stitchSchema causes scalar values to be parsed twice HOT 1
- Allow sorting only top level declarations in schema HOT 1
- `@graphql-tools/mock` - controllable randomness when mocking out union types
- processImport seems unnecessarily slow due to graphql.print HOT 1
- SSE stream breaks when response data is large HOT 2
- Allow for empty objects in mock store HOT 2
- Apollo Subgraph entities are not resolved when using `wrapSchema` HOT 13
- getLoader in batch-delegate uses a non-unique cacheKey HOT 1
- graphql-ws executor does not resolve `connectionParams`
- Project Roadmap HOT 2
- Drop dependency on fast-url-parser HOT 2
- DEBUG=1 results in console.time() warnings
- @graphql-tools/mock does not work with Vitest HOT 5
- Deterministic (seeded) enum values
- Stitching: object field is null when all selections are delegated
- Http Executor encodes headers into query parameters which can leak Authorization headers
- Ability to get names of all the stitched queries in a middleware
- requireResolversToMatchSchema: 'warn' throws an error
- Support .astro file loading on graphql-tag-pluck HOT 1
- Troubles with connectionParams on subscriptions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graphql-tools.