Comments (1)
Hello 👋
I think that is a good idea but might be somewhat problematic to test.
We are comparing the expected schema against the SDL returned by the _service { sdl }
query
- in federation v1 all the federated definitions should be stripped out of this SDL
- federation v2 relaxed the composition rules so the
_service { sdl }
can simply return full SDL definition (including federated definitions, this is the preferred implementation right now) but it still works fine if definitions are excluded (for backwards compatibility) - with introduction of
@link
directive, federated definitions can now be imported and don't have to be present within the SDL returned by_service { sdl }
So sadly not every implementation will contain those definitions as they don't have to be present in the _service { sdl }
from apollo-federation-subgraph-compatibility.
Related Issues (20)
- Why supergraph.config.js is expected to run fedtest for remotely hosted endpoint(subgraph) HOT 13
- direct product subgraph tests have hardcoded url
- False negatives on `requires`, `shareable` and `override` tests HOT 3
- bug: incorrect compatibility tests for forked PRs
- feat: add test for `@interfaceObject` directive HOT 1
- bug: `@requires` test is flaky
- `link` specification incompatibility error with `fedtest` command HOT 3
- Check for breaking changes instead of number of fields when comparing types
- confusing multiple compatibility comments for individual subgraphs
- No tests found when using fedtest with pnpm HOT 2
- Caliban `@tag` compatibility tests incomplete
- AWS AppSync compatibility tests are broken HOT 6
- Rename PHP implementation to Skillshare library
- old renovate Dependency Dashboard HOT 1
- As a subgraph library maintainer, how should I test enterprise features?
- As a subgraph library maintainer, how do I test subscriptions?
- As a subgraph library maintainer, how do I test `@authenticated` directive?
- Found Invalid Compatibility Test Results HOT 1
- `--failOnRequired`/`--failOnWarning` interact in surprising way HOT 1
- Dependency Dashboard
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 apollo-federation-subgraph-compatibility.