Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Set of tests to evaluate and compare the compatibility of different GraphQL gateways with Apollo Federation.

License

NotificationsYou must be signed in to change notification settings

graphql-hive/federation-gateway-audit

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

GatewayCompatibilityTest CasesTest Suites
Hive Gateway (Rust QP)100.00%🟢 192🟢 44
Hive Router100.00%🟢 192🟢 44
Hive Gateway99.48%🟢 191 ❌ 1🟢 43 ❌ 1
Apollo Router97.40%🟢 187 ❌ 5🟢 41 ❌ 3
Apollo Gateway96.88%🟢 186 ❌ 6🟢 40 ❌ 4
Cosmo Router94.27%🟢 181 ❌ 11🟢 37 ❌ 7
Grafbase Gateway91.67%🟢 176 ❌ 16🟢 38 ❌ 6
Inigo Gateway47.92%🟢 92 ❌ 100🟢 12 ❌ 32

See the full report

Apollo Federation Coverage

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.


CLI

TODO: we're working on a CLI to make it easier to run the tests, stay tuned!


Instructions

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.

Testing all gateways

You can run the tests for each gateway by running the following command:

make test-all

Testing a specific gateway

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

Running a gateway for a single test suite

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]

Running a gateway for a specific supergraph

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]

Contributing or adding a new gateway

See the contributing guide

About

Set of tests to evaluate and compare the compatibility of different GraphQL gateways with Apollo Federation.

Topics

Resources

License

Contributing

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp