Comments (2)
Hello,
(Using "@apollo/gateway": "^0.19.1")
Just to add something to this.
Federation over interface objects is virutally unusable for us.
Consider the following federated GraphQL query that sits in front
of three services. Described in this blog post:
https://www.ontotext.com/blog/the-rise-of-the-knowledge-graph
The following graphql query
query {
annotation(id: "https://www.ontotext.com/blog/the-rise-of-the-knowledge-graph/annotation/1") {
body {
source {
similar {
id
name
}
}
purpose
}
}
}
Returns the attached result and query plan. query-response.txt
The gateway invokes 10s of duplicate backend service queries to the same service with the same set of identical query variables/representations. See log apollo-gw.log
This is a performance nightmare.
Is there any further work (PR's) that might help save me time trying to resolve this.
from federation.
The fix for this was released in @apollo/[email protected]
! 🎉
from federation.
Related Issues (20)
- Odd composition behavior with shareable + override
- auto-upgraded schemas get upgraded to latest federation version.
- @interfaceObject example doesn't work HOT 2
- Interface type explosion causes error on query HOT 3
- Unable to add an interface extending an entity interface without breaking dependent subgraphs
- Enable `@requires` on root Query types or error on using on root query types
- Query planner bug with queries fetching fields nested in multiple unions HOT 1
- Can't resolve 'console' in NextJS HOT 1
- Gateway will merge incorrect data if subgraph changes entity order HOT 1
- Query planner generates invalid fetch node selection sets when reuseQueryFragments=true HOT 2
- Directives on `QUERY`, `MUTATION`, or `SUBSCRIPTION` are not passed to subgraphs HOT 2
- Allow reference to field without optional arguments in @external definition HOT 1
- Dependency Dashboard
- @override not work with `label` for progressive overriding HOT 2
- Ordering of `@key` directives causing different behaviors and planning failure HOT 1
- duplicate / identical types across subgraphs returns null results
- Allow @external partial references without redefining entire type
- Disable _service field in Apollo Server for @apollo/subgraph
- Multiple @Keys are not allowing their partner keys from being returned
- Adding a field changes the returned value of another (@requires directive with arguments involved) HOT 2
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 federation.