question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Apollo Federation

See original GitHub issue

Since the graphql schema stitching way is deprecated in Apollo, we are limited to the functionality of Apollo Server.

We really need the support of the Apollo Federation in Hasura.

You guys are promoting the Hasura with advice to use it as a gateway and connect other microservices with a business logic via remote schemas feature, but we want to use graphql-engine only as microservice behind Apollo Gateway in our project. We need most features of Apollo, like tracing, performance metrics, error tracking, safe listing (whitelisting), caching, schema directives, file uploads, custom event-driven subscriptions, automatic persisted queries, vscode plugin

I know about the “allow list” feature in graphql-engine, but it is not useful in real life, because you need something like Apollo Operation Registry. Our CI pushes the operations list to the registry every time when we deploying a new version of our web application on react and apollo client. It is a very convenient way because Apollo has tooling for CI with the ability to check schema changes before pushing these changes to production.

Unfortunately, in the GraphQL community, we become third-class citizens.

So, can Hasura offer at least a small part of features Apollo? We made sure that no.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:101
  • Comments:21 (3 by maintainers)

github_iconTop GitHub Comments

29reactions
kylerjensencommented, Nov 15, 2019

For us, it would be really valuable if Hasura would conform to the federation spec out-of-the-box. The whole reason for our using Hasura is to save time and eliminate the amount of redundant code we have to write. Having to integrate graphql-transform-federation isn’t very straightforward because we have to define all the keys. Hasura already has all the information needed to conform the spec because it has a list of all the primary and foreign keys.

18reactions
carlosbarazacommented, Oct 9, 2019

This is really important to us as well. Using Hasura as a service should be a fairly simple thing to do.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to Apollo Federation - Apollo GraphQL Docs
With federation, you can responsibly share ownership of your supergraph across any number of teams. And even if you currently only have one...
Read more >
Apollo Federation
Apollo Federation is our answer for implementing GraphQL in a service-oriented architecture. It's designed to replace schema stitching and solve pain points ...
Read more >
Introduction to Apollo Federation - Apollo GraphQL Docs
An Apollo Federation architecture consists of: ... Apollo Server provides ...
Read more >
Introduction to Apollo Federation
Apollo Federation provides a flexible architecture that enables you to scale your graph and define relationships through metadata defined in ...
Read more >
Apollo Federation subgraph specification
If your GraphQL server library is code-first instead of schema-first (i.e., it ...
Read more >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found