- Notifications
You must be signed in to change notification settings - Fork4
Set of tests to evaluate and compare the compatibility of different GraphQL gateways with Apollo Federation.
License
graphql-hive/federation-gateway-audit
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository contains a set of tests to evaluate and compare the compatibility of different GraphQL gateways with Apollo Federation.
🌐 See the results of our audit
📖 Read more about our methodology and why we created this audit
| Gateway | Compatibility | Test Cases | Test Suites |
|---|---|---|---|
| Hive Gateway (Rust QP) | 100.00% | 🟢 192 | 🟢 44 |
| Hive Router | 100.00% | 🟢 192 | 🟢 44 |
| Hive Gateway | 99.48% | 🟢 191 ❌ 1 | 🟢 43 ❌ 1 |
| Apollo Router | 97.40% | 🟢 187 ❌ 5 | 🟢 41 ❌ 3 |
| Apollo Gateway | 96.88% | 🟢 186 ❌ 6 | 🟢 40 ❌ 4 |
| Cosmo Router | 94.27% | 🟢 181 ❌ 11 | 🟢 37 ❌ 7 |
| Grafbase Gateway | 91.67% | 🟢 176 ❌ 16 | 🟢 38 ❌ 6 |
| Inigo Gateway | 47.92% | 🟢 92 ❌ 100 | 🟢 12 ❌ 32 |
The tests are based on the Apollo Federation specification and cover the following directives:
@interfaceObject@key@external@provides@requires@extends@inaccessible@shareable@skip@include@composeDirective@override
Out of scope (limited by Enterprise license of Apollo Router):
We are not able to test the following directives on Apollo Router due to the limitations of the Enterprise license:
@authenticated@policy@requiresScopes@override(label:)
We plan to test these directives as soon as we have access to the Enterprise license.
TODO: we're working on a CLI to make it easier to run the tests, stay tuned!
First of all, you need to install and prepare the gateways. You can do this by running the following command:
make install
Important
Be aware thatNode andnpm are required to run the whole setup.
You can run the tests for each gateway by running the following command:
make test-all
You can run the tests for a specific gateway by running the following command:
make test-[name of the gateway]make test-grafbase-gatewaymake test-cosmo-routermake test-hive-gatewaymake test-hive-gateway-router-runtimemake test-apollo-router
In case you want to run only a limited set of tests, you can do so by running the following command:
make test-suite-[name of the gateway] TEST_SUITE=[id of thetest suite]There's also the possibility to start a gateway for a selected supergraph, in case you want to run the queries yourself.
make run-[name of the gateway] TEST_SUITE=[id of thetest suite]About
Set of tests to evaluate and compare the compatibility of different GraphQL gateways with Apollo Federation.
Topics
Resources
License
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.