federation icon indicating copy to clipboard operation
federation copied to clipboard

Federation for existing schemas: graphql-transform-federation

Open 0xR opened this issue 6 years ago • 2 comments

Sometimes a rebuild to use graphql federation is not possible / desirable. I'm working on a schema transform that allows you to add federation to any existing schema: graphql-transform-federation. The idea is that you add the information required for federation and the transform will ensure the schema conforms to the federation API.

I was wondering whether this approach aligns to with your ideas.

  1. Are you interested in adding something like this to buildFederatedSchema? buildFederationSchema(schema, config?: FederationConfig)
  2. What do you think of this approach compared to apollographql/apollo-server#3013 that relies on adding non-standard functions to GraphQL types

Other issues that could be solved with this: https://github.com/prisma-labs/nexus/issues/148 https://github.com/MichalLytek/type-graphql/issues/351

0xR avatar Sep 24 '19 13:09 0xR

Also looking into a solution for this

mengqing avatar Mar 24 '22 05:03 mengqing

Can someone please help out here? I need to federate to an existing schema that does not use federation. It's not even an Apollo Server and a rebuild is out of the question since it's just a big project. Existing libraries are not working at the moment with latest releases of the @apollo/* libs.

luijar avatar Jun 06 '22 17:06 luijar